Hi - me again...
I have a large list of names that are stored in an array. I want to load the names in groups of 30 and have a button named after each name. The button is on another form that is 'shown' when the names are all loaded.
I can't find a way of referencing the name to refer to the button by...
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
For i = 1 To 30
Form2.button & (i).text = AAMName(i))
Next
End Sub
This is how I tried to reference it, but it fails.
Currently I am having to load each button name manually, not using the loop, but using the hideously long...
Form2.Button1.Text = AAMName(i)
Form2.Button2.Text = AAMName(i + 1)
.
.
.
Form2.Button30.Text = AAMName(i + 29)
HELP!!!!!
I have over 1000 names to use!