Directory dialog box

  • Thread starter Thread starter Pry Ness
  • Start date Start date
P

Pry Ness

Hi,

Is there a specific dialog box for letting the user to
choose a directory and not a file?

Thank you.
 
If you are using VS.net 2003, there is a folderbrowserdialog control in the
toolbox.
 
* "Pry Ness said:
Is there a specific dialog box for letting the user to
choose a directory and 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>
 
Also try to use Dialog Workshop .NET.
This product(component's set) contains FolderDialog component which is
actually .NET wrapper for
Win32 SHBrowseForFolder function. And also you can find additional
functionality
like docked forms(add your own controls in the dialog box), new events, etc.
Please visit http://www.componentage.com for details.

With Best Regards,
Serg Novogilov
COMPONENTAGE Software
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top