FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FolderBrowserDialog Starting Folder

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Mon Feb 12, 2007 9:14 pm    Post subject: FolderBrowserDialog Starting Folder Reply with quote

Greetings!

Yes, it's me, the Windows newbie. Smile 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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Feb 13, 2007 6:36 am    Post subject: Re: FolderBrowserDialog Starting Folder Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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