|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating combo box showing drives+desktop+mycomputerI want to include a drive list combo box in my app. Im trying to create it but its becoming too difficult and I dont have the complete knowledge about what items to include in it. Im trying to create a combo box exactly the same as you see in Common Dialog's ShowOpen. Its supposed to display items and images of drives, the desktop, folders on the desktop, my documents, my computer, etc. This kind of combo box is commonly used in Windows, is it included in Shell (like BrowseForFolders) or does every application makes their own control ? If its included in Shell, please guide me how to access it. I tried using CB_DIR parameter for combo-box but I couldn't code for it and I don't know if it will bring the desired result. If its not part of Shell, is there an open-source code available for it because I have to include it in my app. Thank you! Faraz Azhar Faraz,
http://www.vbaccelerator.com/home/VB/Code/Controls/Combo_and_List_Boxes/ComboBoxEx/article.asp It doesn't have everything that you are looking for, but the link I posted is from VBAccelerator, and shows an extended combo that shows drives. I haven't used it in a while now, but I don't think it shows Desktop and MyDocuments. I might be wrong, though. It should at least give you a solid start in the right direction. HTH, Joseph
Show quote
Hide quote
"Joseph Ferris" <joseph.fer***@gmail.com> wrote in message I looked at that one as well (and tried it).... it doesn't have Desktop, news:1131726468.224676.108590@g49g2000cwa.googlegroups.com... > Faraz, > > http://www.vbaccelerator.com/home/VB/Code/Controls/Combo_and_List_Boxes/ComboBoxEx/article.asp > > It doesn't have everything that you are looking for, but the link I > posted is from VBAccelerator, and shows an extended combo that shows > drives. I haven't used it in a while now, but I don't think it shows > Desktop and MyDocuments. I might be wrong, though. > > It should at least give you a solid start in the right direction. > > HTH, > > Joseph etc... This treeview/shell sample comes a bit closer... still, there's items missing from the list. It probably wouldn't be too terribly bad to add the few missing items.... and use this treeview for the dropdown of a combobox (starting to get scary <g>) Displaying Shell Elements in a TreeView http://www.vbaccelerator.com/home/VB/Code/Controls/TreeView/TreeView_Shell_Sample/article.asp -- Ken Halter - MS-MVP-VB - http://www.vbsight.com DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm Please keep all discussions in the groups.. Hmm.. guess I need to create a custom control. Thanks for those two
links folks! Try this website, they have nice controls:
http://www.ssware.com/ Show quoteHide quote "Faraz Azhar" <itz_fa***@hotmail.com> wrote in message news:1131724735.956555.288940@g14g2000cwa.googlegroups.com... > Hello > > I want to include a drive list combo box in my app. Im trying to create > it but its becoming too difficult and I dont have the complete > knowledge about what items to include in it. Im trying to create a > combo box exactly the same as you see in Common Dialog's ShowOpen. Its > supposed to display items and images of drives, the desktop, folders on > the desktop, my documents, my computer, etc. > > This kind of combo box is commonly used in Windows, is it included in > Shell (like BrowseForFolders) or does every application makes their own > control ? If its included in Shell, please guide me how to access it. I > tried using CB_DIR parameter for combo-box but I couldn't code for it > and I don't know if it will bring the desired result. If its not part > of Shell, is there an open-source code available for it because I have > to include it in my app. > > Thank you! > Faraz Azhar > Browse around they have both .net and com
$125 are peanuts if compared to the time you making one and debugging it. It is a great control. Show quoteHide quote "Faraz Azhar" <itz_fa***@hotmail.com> wrote in message news:1131828451.018513.127000@g49g2000cwa.googlegroups.com... > That link contains .NET controls.. further more they are not free :S >
Grouping Lines of Code
Looking for a VB.NET book geared towards Console applications. list files from folder in hard disk Newbie Questions - Returning objects from functions, etc. Converting string to hexa value.... VB and AutoCad System boot date ? dynamically create the DLL DCOM settings programmatically? Invoking an Event of a Class Module |
|||||||||||||||||||||||