In VB6, you could create a control array simply by making two two controls with the same name on the form. I found that this isn't the case with vb 2008. i figured it after I found this though. http://answers.yahoo.com/question/in...0093322AAUORnl but then I got another problem. What if I want to make a Button control array and need the index. In VB6, you just double click the Button in the array in design time and an event handler would come up something like
And if i want to show the index of the button in a TextBox, I'll just write
How do I do this in VB 2008? I'm having a really hard time trying to do this.
Code:
Private Sub Command_Click(Index As Integer)
End Sub
Code:
Private Sub Command_Click(Index As Integer)
Text1.Text=Index
End Sub