Click to See Complete Forum and Search --> : How to filter Common Dialog for many extenctions


AndyK
October 2nd, 1999, 08:48 PM
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

Amendra
October 3rd, 1999, 02:26 PM
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.