0

hi all!
am havin a problem in loading sorting items in a listbox. what i want is after i load a text file into a listbox the items are compared by the last number and sorted in descending order.
any help will be appreciated.

thanx in advance

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by __avd
0

Try to use generics.

Dim myItem As New List(Of String)
        myItem.Add("a")
        myItem.Add("b")
        myItem.Add("A")

        Dim k = From item In myItem Order By item Descending Select item
        ListBox1.DataSource = k.ToList()
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.