Click here to Skip to main content
16,018,802 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to check whether the file is .docs type or .xslx type in windows application for openfiledialog.Any idea pls help urgent
Posted
Updated 5-Sep-13 22:36pm
v4
Comments
Mohan Gopi 6-Sep-13 3:20am    
Refer this link;

http://stackoverflow.com/questions/2069048/setting-the-filter-to-an-openfiledialog-to-allow-the-typical-image-formats

Hi,
This link shows you how to get the extension for a file in the given path.
Hope it helps you.

http://www.dotnetperls.com/path-getextension[^]
 
Share this answer
 
Comments
[no name] 7-Sep-13 0:00am    
my vote +5
Thomas ktg 7-Sep-13 1:00am    
Thanks
Maybe this can get you started:

Link 1
Link 2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900