Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommonDialog question 1

Status
Not open for further replies.

ixian

Programmer
Jul 13, 2001
128
US
Hey all,

I wish to be albe to open all types of txt files like Word does
All Word files
Rich text files
text Files
etc

what are the extension for each and how would you list them in the filter part of the coding?

Aaron Fear is the mind killer!!!!!!
 
Hi Aaron,
Use following snippet in your code:
myCommonDialog.Filter = "Word Files (*.doc)|*.doc|Rich _
Text Files (*.rtf)|*.rtf|Text Files (*.txt)|*.txt"


Hope it works!!!
 
rajeevnandanmishra

thanks

Aaron Fear is the mind killer!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top