How to sort items in a listbox without using the sort property?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • annroy
    New Member
    • Feb 2014
    • 1

    #1

    How to sort items in a listbox without using the sort property?

    how to sort items in a listbox without using the sort property in vb.net?
  • Luk3r
    Contributor
    • Jan 2014
    • 300

    #2
    I'm not sure why you wouldn't use the sort property but there are a couple of ways..
    1) Listbox.Sorted = True
    2) Read all listbox items, write them to a list, sort the list, read the list, and then write the list back to the listbox

    Comment

    Working...