Previous Thread
Next Thread
Print Thread
Rate Thread
#17596 07/05/02 11:06 AM
Joined: Mar 2002
Posts: 143
Member
Member
Joined: Mar 2002
Posts: 143
im writing a little program that is autoexecuted when a cd is put in the drive and its supposed to automatically launch the movie thats on the cd. and i have it all done and working nice. but i want to make the program more generic, so i dont have to have a different version for .avi, .mpg, .mpeg, etc.

so my question is, is there any way to have multiple patterns for a filelistbox? i tried separating the patterns with commas and semicolons to no avail...

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
#17597 07/07/02 04:55 AM
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
I started a new project and placed a file list box on my form. It immediately displayed all the files in the VB executeable directory. I then replaced the Pattern property "*.*" to "*.dll;*.exe"

It displayed only dll's and exe's...

So a semicolon is what you need. Dunno why it didn't work for ya before.


Domain Registration, Hosting, Management
http://www.dollardns.net
#17598 07/07/02 09:35 AM
Joined: Mar 2002
Posts: 143
Member
Member
Joined: Mar 2002
Posts: 143
ahhh, see i was putting a space between the ; and the *, guess it makes a difference, works now, thanks. laugh


Link Copied to Clipboard
Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,204
Joined: February 2002
Forum Statistics
Forums41
Topics33,839
Posts68,797
Members2,177
Most Online73,244
Nov 9th, 2025
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,204
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 8.0.0