Results 1 to 5 of 5

Thread: commondialog.flags

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Middletown NJ
    Posts
    1

    commondialog.flags

    on my win98 system, using vb6, if the commondialog.flags contains 512 to allow for multiple file selection in showopen, the showopen dialog box reverts to a win3.2 version with the 8.3 filenames. undoing flag 512 allows for a win98 version, alas with only single file functionality. what gives?

  2. #2
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    That will happen if you won't specify cdlOFNExplorer flag:
    VB Code:
    1. With CommonDialog1
    2.     .Flags = cdlOFNAllowMultiselect Or cdlOFNExplorer
    3.     .ShowOpen
    4. End With
    Roy

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I've run into this problem before too. Fix:

    VB Code:
    1. CD.Flags = cdlOFNExplorer Or cdlOFNAllowMultiselect Or cdlOFNHideReadOnly

    Note: cdlOFNHideReadOnly is not required.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Bah, you beat me Roy
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    OK, but I'm not competing. ;-)
    Roy

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