this is something i want to do , creating amount of index of a control and load them to list1
example
i know this is wrong because i am doing wrong
i wish to create my selected amount of index of a control and add to list2 and if the item is selected then that index should be visible only i need an example please thanks
example
i know this is wrong because i am doing wrong
Code:
Private Sub Command2_Click()
Dim x3 As Integer
For x3 = 1 To "50"
Load Command1(0)
List2.AddItem x3
Next x3
End Sub
Code:
Private Sub List2_Click()
If List2.Text = "Command1(0)" Then
Command1(0).Visible = True
Command1(1).Visible = False
Else
If List2.Text = "Command1(1)" Then
Command1(1).Visible = True
Command1(0).Visible = False
End If
End If
End Sub
i wish to create my selected amount of index of a control and add to list2 and if the item is selected then that index should be visible only i need an example please thanks