Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2008 Button Control Array Help

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

Private Sub Command_Click(Index As Integer)

End Sub

And if i want to show the index of the button in a TextBox, I'll just write
Code:

Private Sub Command_Click(Index As Integer)
Text1.Text=Index
End Sub

How do I do this in VB 2008? I'm having a really hard time trying to do this.

Viewing all articles
Browse latest Browse all 27189

Trending Articles



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