When I am reading a folder of filenames into an array with My.Computer.FileSystem.GetFiles and writing this array sequentially in a listbox/checkedlistbox the file names are showing up in the format:
I do not have control over the filenames so I can’t change the format to add leading zeros or anything, and I obviously can’t modify them in the program because then they wouldn’t point to their respective files anymore. I am trying to get VB to sort like Windows default sorting, which lists them in numerical order. I remember having had this problem and solving it once before a while ago (I don't think it was that hard), but can’t remember how I did it.Code:Name.1 Name.10 Name.2 Name.3 Name.4 Name.5 Name.6 Name.7 Name.8 Name.9




Reply With Quote