need help with listbox
Posted: Mon Nov 25, 2013 3:37 pm
hello,
who can help us with this weird small problem
it seems after been removed from listbox
and listbox will be empty it keeps going with checking
the point is when the listbox is empty it need to stop
because when everything has been deleted why do he keep checking it?
what did we forgot?
who can help us with this weird small problem
it seems after been removed from listbox
and listbox will be empty it keeps going with checking
the point is when the listbox is empty it need to stop
because when everything has been deleted why do he keep checking it?
what did we forgot?
Code: Select all
thank you. Dim file(ListBox2.Items.Count - 1) As String
For i = 0 To ListBox2.Items.Count - 1
file(i) = ListBox2.Items(i).ToString()
Next
For x = 0 To file.Length - 1
checkme()
Me.Cursor = Cursors.Default
If sended Then
ListBox2.Items.RemoveAt(0)
Application.DoEvents()
End If
Next