Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenFileDialog.RestoreDirectory puzzle

Status
Not open for further replies.

jherek

Technical User
Nov 16, 2003
15
GB
Hi,
When I set the

OpenFileDialog.RestoreDirectory=True

I thought that the next time I used the dialog the directory would be the initial starting directory - but I can't get it to work. It opens up the last directory visited - is this right, or am I just mis-understanding something??

Thanks for your time
 
No you are right - it does not work for me either

This is what the help says

true if the dialog box restores the current directory to its original value if the user changed the directory while searching for files; otherwise, false. The default value is false.

You could do it manually by setting the initial directory property in code before you open the dialog



Mark [openup]
 
Well, I'm not sure whether to be relieved it dosen't work for you or not! It seems like a handy feature it's just a shame it's broken! But, at least it's not me doing something wrong!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top