Home All Groups Group Topic Archive Search About

Creating combo box showing drives+desktop+mycomputer

Author
11 Nov 2005 3:58 PM
Faraz Azhar
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

Author
11 Nov 2005 4:27 PM
Joseph Ferris
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
Author
11 Nov 2005 4:46 PM
Ken Halter
Show quote Hide quote
"Joseph Ferris" <joseph.fer***@gmail.com> wrote in message
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

I looked at that one as well (and tried it).... it doesn't have Desktop,
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..
Author
11 Nov 2005 7:38 PM
itzfaraz
Hmm.. guess I need to create a custom control. Thanks for those two
links folks!
Author
11 Nov 2005 7:53 PM
Ted
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
>
Author
12 Nov 2005 8:47 PM
Faraz Azhar
That link contains .NET controls.. further more they are not free :S
Author
12 Nov 2005 10:55 PM
Ted
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
>