Re: Open Dialog Intial Directory?
Jon Finley <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Organization | GateKeeper Systems, Inc. |
| Message-ID | <[email protected]> |
http://msdn2.microsoft.com/en-us/library/c9db58th(VS.80).aspx -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Christopher Frazier Sent: Thursday, April 19, 2007 2:58 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] Open Dialog Intial Directory? Use the settings goop to store it as opposed to a local variable. -- -Christopher | AspInsider http://chrisfrazier.net/blog (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Steve Abaffy Sent: Thursday, April 19, 2007 3:27 PM To: [email protected] Subject: [DOTNET-WINFORMS] Open Dialog Intial Directory? Hello, I'm sure this is easy, but I am having a brain fart or something. I have from which contains a OpenFileDialog box. I would like to figure out a way to save the last folder opened and save it somewhere so that the next time I open the FileDialog box I can set the InitialDirectory to that folder. This state does not have to span past the current use of the app. In other words open app, select thisform from main_menu. Open File Dialog, do something close thisform. Do something else in app, open thisform, Open File Dialog set intialDirectory to last used. The problem is by closing the thisform all the var in the form are lost and reinitialize to default. So not sure where to keep the information of lastFolderUsed. Thanks