Selecting A dDirectory

  • Thread starter Thread starter Huw Lloyd
  • Start date Start date
H

Huw Lloyd

Hi,

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.

Thanks in advance


Huw
 
Hi Huw,

In VB.net 2003 there is a new folderBrowserDialog, the same as you see
everywhere, I find it very nice..

When I write this there will be most probably a message from Herfried K.
Wagner that it has a bug with filenames longer than 128characters.

Cor
 
* "Huw Lloyd said:
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@cpmsftngxa09>
 
Back
Top