I have six list boxes in my VB6 project and two buttons.
The first button's job is to select the next item in the current list box. Now that I am adding more listboxes how can I modify the following command so that it will always pertain to the current list box?
If List1.ListIndex > 0 Then
List1.ListIndex = List1.ListIndex - 1
End If
Also how can I create a way so that when the second button is pressed the first value in the next list box is chosen?
Thanks!
The first button's job is to select the next item in the current list box. Now that I am adding more listboxes how can I modify the following command so that it will always pertain to the current list box?
If List1.ListIndex > 0 Then
List1.ListIndex = List1.ListIndex - 1
End If
Also how can I create a way so that when the second button is pressed the first value in the next list box is chosen?
Thanks!
Comment