Results 1 to 3 of 3

Thread: [RESOLVED] Enabling "All Files" in Common Dialog

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Resolved [RESOLVED] Enabling "All Files" in Common Dialog

    Hi all,

    I couldn't figure this out. How can I make it so there is "all files" in the common dialog control's filter?

    the normal way to put a filter in there would be like

    cdl.Filter = "Mp3 (*.mp3)|*.mp3|"

    How do you do All Files?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Enabling "All Files" in Common Dialog

    Like this should work. (freehand)

    VB Code:
    1. cdl.Filter = "All Files (*.*)|*.*|"

    or do you mean mp3 AND all files?

    Here's an example of multiple types:
    VB Code:
    1. CommonDialog1.Filter = "All Files (*.*)|*.*|Text" & _
    2.       "Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat"
    3.    CommonDialog1.FilterIndex = 2 ' Default to TEXT

  3. #3

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Enabling "All Files" in Common Dialog

    Nope, I was just using that as an example. You were just thinking too hard


    thanks dglienna

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