Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21186

create index of form controls

$
0
0
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
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

Viewing all articles
Browse latest Browse all 21186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>