FolderBrowserDialog Help Plz

  • Thread starter Thread starter MikeY
  • Start date Start date
M

MikeY

Hi Everyone,

I'm getting stumped here. I've been trying to use the FolderBrowserDialog
for the first time, but to no avail. Can someone please give me adive on how
to use this. I don't know if I sould be having a component in my toolbox
like openfile/savefile. Or where to begin with this.

I am trying to write a C# window form. Any and all help is truly
appreciated.

MikeY
 
Hi MikeY,
you can create the FolderBrowseDialog programatically, it is not a
component. Some sample code which shows the dialog and gets the path
selected by the user is:

FolderBrowserDialog folderBrowse = new FolderBrowserDialog();
folderBrowse.ShowDialog();

string selectedPath = folderBrowse.SelectedPath;


Hope that helps
Mark R Dawson
http://www.markdawson.org
 
Txs Mark,

But I think the problem is that I am running Framework 1.0. From my further
reading, I understand that I would need to have Framework 1.1 to be able to
utilize this. Unfortunately I cannot afford a new version at this time and
will have to get around it with straight textbox input to get at my folder.

Thanks again Mark

MikeY
 
No, I'm using VS2002. BAH. Oh well, can't have it all I guess. Back to
textbox input for the folder location.

MikeY
 

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