* "Huw Lloyd" <hu*******@saberanalytics.nospam.com> scripsit:
I am writing a windows application in VB.NET 2003
How do I use an open file dialogue so the user can select an individual
directory either on the current pc or a network directory.
I can make it return an individual file, but I want the user to be able to
select an individual directory NOT a file.
NET 1.1:
'System.Windows.Forms.FolderBrowserDialog'
Note that there is a bug in Fx 1.1 that causes a really bad error when
using a path which is longer than ~128 characters. This occurs on unicode
systems only. Use the PInvoke solutions mentioned below instead.
The property for hiding the button that allows the user to create a new
folder doesn't work on Windows 2000.
..NET 1.0:
<http://www.codeproject.com/cs/miscctrl/folderbrowser.asp>
<http://support.microsoft.com/?kbid=306285>
<http://www.gotdotnet.com/team/vb/FolderBrowser.exe>
<http://groups.google.com/groups?selm=q0JKzDbmCHA.2144%40cpmsftngxa09>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>