Results 1 to 5 of 5

Thread: Common dialog

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598

    Common dialog

    Hi all,

    How can I have my common dialog box open in the same directory as where I am running the program for?

    Thanks

    Loftty

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    Are you asking how you set the common dialog so that it defaults to the path of the running application?

    App.Path will give you that path, I think you just set that as the filename or something before showing the commondialog.
    My usual boring signature: Nothing

  3. #3
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    VB Code:
    1. CommonDialog1.InitDir = App.Path

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    That's the one, but I expected you to beat me to the answer
    My usual boring signature: Nothing

  5. #5

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