Results 1 to 6 of 6

Thread: Commond Dialog Control

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Talking

    Alright is there a way to have the common dialog box never be able to switch the path that is given. for example. Say I only want the user to be able to save and open files from the folder happy in the c drive. So now I can say to start in the directory C:\happy\ but is there a way so that the user can't leave that folder. I would use file boxes but they are so un professional looking compared to the common dialog. Thanks!!
    Sincerely,
    Chris


    Email: [email protected]
    AIM: KnightsOfTheMoon
    WebPage: http://kom.wicre.com
    ----------------
    VB6 Professional
    Abit ST6-RAID
    1000 MHZ
    512 MB PC133 Ram
    Nvidia GeForce 2 Ultra 64 MB
    Maxtor 81.9 Gig
    Win 98 SE

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    If they're not able to change the path, what's the point of prompting them with a common dialog?
    Why not just prompt them for a filename (either on the form, or by using Inputbox), then you can save the file to the appropriate path and they won't be able to change it...
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3
    Guest
    I believe this will make the CommonDialog stay in the InitDir

    Code:
    CommonDialog1.Flags = cdlOFNNoChangeDir
    Sunny

  4. #4
    New Member
    Join Date
    Oct 2000
    Location
    Abingdon, England
    Posts
    5
    Just to say my twopenneth - If you want them to stay in an existing directory. Why not use the Input box for file name, coupled with the "File List Box" - one of the forgotten controls of VB!
    Chris Franklin

  5. #5
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    yah, those suggestions should work for you. I'm with them all...just use a file list box control.

    Even better... go to http://www.mvps.org/ccrp/ and look around. This is a bunch free controls that do cool stuff like emulate explorer windows.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  6. #6

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408
    Like I said before I would use file list box but they look like crap. The commondialog control lactually looks good. Input boxes look like crap. I mean how many programs (thats are professional)actually have an input box show up. I have tried the flags code and that doesn't work doe some unknown reason. I am gonna look at that web site you gave me thanks!!
    Sincerely,
    Chris


    Email: [email protected]
    AIM: KnightsOfTheMoon
    WebPage: http://kom.wicre.com
    ----------------
    VB6 Professional
    Abit ST6-RAID
    1000 MHZ
    512 MB PC133 Ram
    Nvidia GeForce 2 Ultra 64 MB
    Maxtor 81.9 Gig
    Win 98 SE

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