CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    How to filter Common Dialog for many extenctions

    how can i filter for *.wav and *.au and *.snd.....etc. so like it will say "Audio" and it filters for many extenctions

    Thank You


  2. #2
    Join Date
    Aug 1999
    Location
    Srilanka
    Posts
    25

    Re: How to filter Common Dialog for many extenctions

    Create a form. Add a command button name command1.
    Then add the CommonDialog control. Past the following code and this might work for you.


    [vbcode]

    Private Sub command1_Click()
    With CommonDialog1
    .Filter = "Executable file (*.exe)|*.exe;|DOS Batch file (*.bat)|*.bat"
    .ShowOpen
    End With
    End Sub

    Hope those works for you.

    Amendra.



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

Featured