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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set initial directory to last accessed directory?

Status
Not open for further replies.

KellyStee

Technical User
Jul 30, 2001
106
US
I have a button on a form and I want the user to be able to click the button and browse to a file.
I got the open dialog code from here:
My only problem is that I want the open dialog control's initial directory to start at the last place I browsed to. So, if I looked in c:\My Documents last, then the next time I click the button, I want the open dialog to open c:\My Documents first.

I couldn't find anything on this topic in this forum. Could someone please help me?

Thanks!
Kelly
 
Look up SaveSetting and GetSetting to use the registry for this
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top