Results 1 to 6 of 6

Thread: Forcing CommonDialog to start in certain folder

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    Texas
    Posts
    164

    Forcing CommonDialog to start in certain folder

    I am trying to get the CommonDialog new file to come up in a certain folder and not having any luck. I have tried excecuting the ChDir right before I call the CommonDialog but it still does not start there. Any suggestions?

    Thanks in advance.

    Mickey

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Forcing CommonDialog to start in certain folder



    the commondialog has an InitDir property that you can set before calling it.

  3. #3
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Forcing CommonDialog to start in certain folder

    VB Code:
    1. CommonDialog1.InitDir = "C:\Windows"
    2. CommonDialog1.ShowOpen
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Forcing CommonDialog to start in certain folder

    AAuugh!

    I lose...

    lol

    oh yeah and
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Location
    Texas
    Posts
    164

    Re: Forcing CommonDialog to start in certain folder

    I knew it had to be somewhere. I just spend the past day and half looking and playing. I have gotten out of the habbit of looking as I type the period to see the list of available properties.

    I really, really appreciate the fast answer.

    Now lets see if you really know your stuff.....What are this weekends winning lottery numbers for Texas. I will share.......

    Thanks.

    Mickey

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Forcing CommonDialog to start in certain folder

    6,13,22,24,37 and 44
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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