Results 1 to 2 of 2

Thread: [2005] Open File Dialog Restore Initial Directory

  1. #1

    Thread Starter
    Lively Member ARanc's Avatar
    Join Date
    Aug 2006
    Posts
    71

    [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?
    Regards,

    Alex



    I use Visual Basic 2005 Express Edition

  2. #2
    Hyperactive Member gnaver's Avatar
    Join Date
    Jul 2005
    Location
    Denmark/Sweden
    Posts
    289

    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()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width