Welcome to Dream.In.Code
Become a VB Expert!

Join 137,233 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,801 people online right now. Registration is fast and FREE... Join Now!




How to select directory with CommDlgBox

 
Reply to this topicStart new topic

How to select directory with CommDlgBox

ffrreeaakk
26 Feb, 2007 - 12:40 PM
Post #1

New D.I.C Head
*

Joined: 26 Feb, 2007
Posts: 3


My Contributions
I know how to use CommonDialogBox for example .ShowOpen and .ShowSave, but I don't have a clue how to show a window with which I can select directory. Such window:
IPB Image
Documentation of Common Dialog Box didn't help me. There is nothing about a dialog box to select directory. But I think there must be a way to show it cause it's quite popular window.

This post has been edited by ffrreeaakk: 26 Feb, 2007 - 12:41 PM
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: How To Select Directory With CommDlgBox
26 Feb, 2007 - 07:39 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,859



Thanked: 50 times
Dream Kudos: 550
My Contributions
Try this link: VB TIP: Using the Browse Folder Dialog Box The windows API function that shows that nifty little window is called SHBrowseForFolder(). The link I provided is for VB6 but you can search for "SHBrowseForFolder() VB.NET" in google to get other examples.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: How To Select Directory With CommDlgBox
26 Feb, 2007 - 11:12 PM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,914



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
NickDMax is right.
You can either use the API Function or use the DirListBox Control that is included on the standard toolbox.
User is offlineProfile CardPM
+Quote Post

ffrreeaakk
RE: How To Select Directory With CommDlgBox
27 Feb, 2007 - 07:21 AM
Post #4

New D.I.C Head
*

Joined: 26 Feb, 2007
Posts: 3


My Contributions
Lol, I forgot about DirListBox blink.gif .
But anyway, I think API will be better option. icon_up.gif
Thank you both very much for help.
Greetings!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:34PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month