View previous topic :: View next topic |
Author |
Message |
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Mon Feb 12, 2007 9:14 pm Post subject: FolderBrowserDialog Starting Folder |
|
|
Greetings!
Yes, it's me, the Windows newbie. I am trying to pick up a working folder and I am able to do this, but I would like the starting place to be set. I am using selectedPath() to set the starting spot, but it is not working. Here is the code...
Code: |
char[] askForWorkDir()
{
FolderBrowserDialog wf;
wf = new FolderBrowserDialog();
char[] desc = "Choose the working folder for this task...";
wf.description(desc);
//wf.selectedPath(wDir.text);
if (wDir.text != "")
wf.selectedPath(wDir.text);
if(DialogResult.OK != wf.showDialog())
return "";
//msgBox(wf.selectedPath());
return wf.selectedPath();
}
|
Is this correct?
thanks,
jic |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Feb 13, 2007 6:36 am Post subject: Re: FolderBrowserDialog Starting Folder |
|
|
It wasn't supported, but now it is. Just set the selectedPath as you are doing; setting it to an empty string is fine, however. I also just wrote an example called dirlist that uses a FolderBrowserDialog and displays the directory listing in a TreeView.
- Chris |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|