VB.NET

Sort a ListBox in Descending Order in VB.NET1 min read

Hello everyone !

I searched on the Net how to sort a ListBox in descending order. Full of proposals but not always simple
I wrote a very small code that does this sorting.




In a new project, create ListBox 2: List1.Sorted = True, List2.Sorted = False, a CommandButton called Bt_Sort, and copy the code below:

That’s all. It’s up to you to adapt this code to your needs.

 

Leave a Comment