Click here to Skip to main content
16,011,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
When i select a folder the folder should display all the files with extensions what i want for example if i want files with extensions .xml when i select the folder i want the folder to list on the xml files inside the folder how to do it
Posted

you can use filter property as
OpenFileDialog1.Filter = "Images (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|ALL FILE (*.*)|*.*" for filtering a file that u want
 
Share this answer
 
Are you using OpenFileDialog? If so, see the Filter[^] property
 
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