|
-
Aug 4th, 2002, 03:50 PM
#1
Thread Starter
Hyperactive Member
Common Dialog Filtering
Hi, I have a problem, When using the commondialog to load files, you can set a filter eg:
Code:
.Filter = "All Supported Formats (All Supported)|*.htm"
How do I do a filter on multiple extensions at once, and also, how do I add multiple choices to the filter?
Thanks for any help you can offer.
-
Aug 4th, 2002, 03:54 PM
#2
I don't know about multiple extensions at once, but for multiple filters, just keep using the pipe as a separator :
Code:
.Filter = "All Supported Formats (All Supported)|*.htm|All Files|*.*"
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 4th, 2002, 04:00 PM
#3
Thread Starter
Hyperactive Member
Thanks,
Thier is a way to do it for multiple types at once though right?
-
Aug 4th, 2002, 04:59 PM
#4
Frenzied Member
To do multiple exentions
VB Code:
.Filter = "All Supported Formats (All Supported)|*.htm, *.asp,*.jsp,*.aspx|All Files|*.*"
-
Aug 4th, 2002, 05:05 PM
#5
Thread Starter
Hyperactive Member
Originally posted by moinkhan
To do multiple exentions
VB Code:
.Filter = "All Supported Formats (All Supported)|*.htm, *.asp,*.jsp,*.aspx|All Files|*.*"
Thank you, I tried commas, but never occured to me it may need spaces as well. THanks
-
Sep 28th, 2002, 07:32 AM
#6
Hyperactive Member
man, what pills have you all been taking, that doesnt work 4 me
Code:
.Filter = "All Supported Formats (All Supported)|*.htm;*.asp;*.jsp;*.aspx|"
That's the stylez
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Sep 28th, 2002, 09:35 AM
#7
Frenzied Member
VB Code:
CommonDialog1.Filter = "All Files|*.*|Picture Fiels|*.jpg;*.gif;*.bmp"
What error r u getting?
-
Sep 28th, 2002, 09:33 PM
#8
Hyperactive Member
No errors there
I'm not getting any errors from that code, but from your previous post, you have used comma's (,) instead of semicolons ( and that wasn't working.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|