Sorting Listbox Items numerically in VB

后端 未结 2 1239
醉话见心
醉话见心 2020-12-11 09:35

I need to sort the items in a visual basic listbox numerically, that is, I have a collection of numbers I would like to be sorted increasingly.

I tried to simply us

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 09:35

    You could dump the items into a List(Of Integer) object and call its sort. Then bind your listbox to that new list post-sort.

提交回复
热议问题