Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Sort a listbox with reverse alphabetical order?

$
0
0

How do I sort a listbox as reverse alphabetical order with this code?

listBoxComputer.DataSource = Directory.GetDirectories(rootDir).Select(Path.GetFileName).ToList(); 

listBoxComputer.SelectedIndexChanged += listBoxComputer_SelectedIndexChanged;



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>