Dim arr() As Integer = New Integer(lb_dte_activo.Items.Count - 1) {}
Dim i As Integer = 0
For Each elem In lb_dte_activo.Items
arr(i) = elem
i += 1
Next
Array.Sort(arr)
'lb_dte_activo.Sorted = False
lb_dte_activo.Items.Clear()
lb_dte_activo.Items.AddRange(arr.Cast(Of Object).ToArray())
fuente
No hay comentarios.:
Publicar un comentario