ThumbnailEX to load multiple file types
Posted: Wed May 02, 2012 3:13 pm
ThumbnailEx1.LoadFromDirectory([Path],[False],[Pattern])
This is currently using the DirectoryInfo.GetFiles Method.
With this current setup you can only use 0ne pattern at a time.
Recommendation:
If you build function to use the FileSystem.GetFiles(String, SearchOption, String()) Method you would be able to use an array of strings for the pattern rather than just one pattern.
For example: I want to load jpg and png. I can make the pattern : *.jpg;*.png
See: http://msdn.microsoft.com/en-us/library/ms127994.aspx
With your way a programmer would have to loop through all the desired patterns one by one.
With the the FileSystem.GetFiles (String, SearchOption, String()) Method all you have to do is one call.
This is currently using the DirectoryInfo.GetFiles Method.
With this current setup you can only use 0ne pattern at a time.
Recommendation:
If you build function to use the FileSystem.GetFiles(String, SearchOption, String()) Method you would be able to use an array of strings for the pattern rather than just one pattern.
For example: I want to load jpg and png. I can make the pattern : *.jpg;*.png
See: http://msdn.microsoft.com/en-us/library/ms127994.aspx
With your way a programmer would have to loop through all the desired patterns one by one.
With the the FileSystem.GetFiles (String, SearchOption, String()) Method all you have to do is one call.