Folder Browser Control

jdy0803

Well-known member
Joined
Sep 9, 2012
Messages
73
Location
Santa Clarita
Programming Experience
10+
I need to browse folder and get file list of which extension name is bmp, jpg(image files).
This control should be placed in the form.
There is a System.Windows.Forms.FolderBrowserDialog, which is a floating dialog style, not fixed in the form.
Is there any control for me to implement this?
 
Last edited:
Have you checked out: System.IO.Directory.GetFiles() ?
Just make two calls, one looking for *.bmp and one looking for *.jpg
Now once you have both arrays, you can combine them into a single list, then sort the list.
Add a ListView control to your form, loop the list and create a FileInfo object for each item, now you can use the FileInfo to get all the details and add it to the ListView on your form.
 
Back
Top