Is there a dialog box that I can you to allow users to change working directory?

S

steve bull

I see dialog boxes used all the time by apps that allow you to choose a directory. I can't find it in any of my books or on line.


Is there a C# provided dialog box for selecting a directory? And, is the usual convention that users should use a directory under My
Documents for saving files etc?


Thanks,

Steve
 
G

Guest

The FolderBrowserDialog should do what you are looking for. Its on the
toolbox under Dialogs or in code its in System.Windows.Forms

Chris
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You can open a folder select dialog and then set the
Environment.CurrentDirectory
 
G

Guest

I think what you saw is the FolderBrowserDialog. You can find it on the
toolbox in the Visual Studio designer, under Dialogs.

Adrian.
 

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

Top