i know how to use the openFileDialog, but can you do the same thing for returning a folder?
Printable View
i know how to use the openFileDialog, but can you do the same thing for returning a folder?
If you have VS.NET 2003 , then there is FolderBrosweDialog to set/get folders . Isn't that what mean !
i dont have vs 2003, but i should get it.
how do you do it in the older version?
To get a folder with OpenFileDialog ? I doubt it . You can't unless you specified a file name and pressed Open , at this stage you can parse the file name to get the path . Build your own Dialog (which is time-conusming) or some APIs that can bring FolderDialog used in Windows .
that sucks. i've never used apis before... no idea how to go about doing that.
Here you go . Just copy and paste with little tweaking .http://forums.devshed.com/t83452/s.html
http://www.vbcodemagician.dk/tips/cd...owsefolder.htm
thanks pirate. that's just what i need.
here is code without api's
http://vbforums.com/showthread.php?s=&threadid=273594
(put it in a class and use it in vb.net)