Hi all i got a form that i need to process listbox items on by one automatically by sending it to a textbox but when i click command2 i see the highlight moves so fast and reaches last item in my listbox without allowing my textbox to process all listbox items. Could any one tell me how to solve this problem .Thanks
VB Code:
Private Sub Command2_Click() Dim i As Long For i = 0 To List1.ListCount - 1 Text2 = List1.List(i) List1.Selected(i) = True Next End Sub Private Sub Form_Load() List1.AddItem "item1" List1.AddItem "item2" List1.AddItem "item3" List1.AddItem "item4" List1.AddItem "item5" List1.AddItem "item6" List1.AddItem "item7" List1.AddItem "item8" List1.AddItem "item9" End Sub




Reply With Quote