-
Sort of files
Suppose my default directory is 'C:' , i have 4 files 1files.jpg , 2files,jpg , 3files.jpg & 4files.jpg. Can i sort this 4 files in the order of 1files.jpg , 2files,jpg ..to 4files.jpg just in case they are no in this order in this directory ? I need to sort this out so that i can load it into a picturebox in this order.
-
Re: Sort of files
Add the filenames to a ListBox Control with the Sorted property set to true. Then, when loading the pictures, take the filename form this listbox. Set the visible property of the listbox to false.
Using the listbox is a quick method of sorting things, if speed is not a problem for your application.