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?
Printable View
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?
Like this should work. (freehand)
VB Code:
cdl.Filter = "All Files (*.*)|*.*|"
or do you mean mp3 AND all files?
Here's an example of multiple types:
VB Code:
CommonDialog1.Filter = "All Files (*.*)|*.*|Text" & _ "Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat" CommonDialog1.FilterIndex = 2 ' Default to TEXT
Nope, I was just using that as an example. You were just thinking too hard :)
thanks dglienna :wave: