Hello people,
I have a listbox and I want to invert the items in it (reverse them, the first goes last and the last goes first).
Any short ways to do it?
Printable View
Hello people,
I have a listbox and I want to invert the items in it (reverse them, the first goes last and the last goes first).
Any short ways to do it?
Voila:
Code:Dim reversed As IEnumerable(Of String) = ListBox1.Items.Cast(Of String).Reverse
ListBox1.DataSource = reversed.ToArray