[2005] Open File Dialog Restore Initial Directory
Hi everyone,
I have a form with an open file dialog in it.
Everytime I run the open file dialog for the first time the initial directory is displayed. When I run it again, it shows the most recent directory and not the initial directory. I have restore directory set to true but it still won't work.
Any help or suggestions?
Re: [2005] Open File Dialog Restore Initial Directory
in the button that shows the dialog set the InitialDirectory value before showing the open file dialog..
Code:
Dim Opendlg As New OpenFileDialog
Opendlg.InitialDirectory = "C:\"
Opendlg.ShowDialog()