943,525 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 4546
  • VB.NET RSS
Jul 1st, 2009
0

openfiledialog filter

Expand Post »
How do I set a filter for just music files?
Similar Threads
Reputation Points: 10
Solved Threads: 16
Posting Whiz in Training
plusplus is offline Offline
207 posts
since Jul 2007
Jul 1st, 2009
0

Re: openfiledialog filter

For example,
VB.NET Syntax (Toggle Plain Text)
  1. openFileDialog1.Filter = "Word (*.doc) |*.doc;*.rtf|(*.txt) |*.txt|(*.*) |*.*"
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 2nd, 2009
0

Re: openfiledialog filter

Click to Expand / Collapse  Quote originally posted by adatapost ...
For example,
VB.NET Syntax (Toggle Plain Text)
  1. openFileDialog1.Filter = "Word (*.doc) |*.doc;*.rtf|(*.txt) |*.txt|(*.*) |*.*"
That's for text files, how about music files?
Reputation Points: 10
Solved Threads: 16
Posting Whiz in Training
plusplus is offline Offline
207 posts
since Jul 2007
Jul 3rd, 2009
0

Re: openfiledialog filter

Use this:
openFileDialog1.Filter = "Wave Files(*.wav)|*.wav|MP3 Files(*.mp3)|*.mp3|All
Files(*.*)|*.*"

---------
- G Himangi, LogicNP Software http://www.ssware.com
Shell MegaPack: Drop-In GUI Controls For Windows Explorer Like File And
Folder Browser Functionality
CryptoLicensing: Add licensing, copy-protection and activation to your
software
EZNamespaceExtensions: Fast and painless development of namespace extensions
EZShellExtensions: Rapid development of all shell extensions,explorer bars
and BHOs
---------
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ghimangi is offline Offline
20 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Server dir list in network
Next Thread in VB.NET Forum Timeline: Scanner Device using WIA





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC