creating control arrays in vb.net
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
You can't create them like you did in vb6. The controls all have to have unique names, but you can have multiple controls use the same event code. Let's say you have three text boxes. TextBox1 TextBox2 TextBox3 You can set it up for all of them to use the same event code like: Private Sub TextBox_TextChanged(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles TextBox1.TextChanged, _ TextBox2.TextChanged, _ TextBox3.TextChanged 'do some common processing here End Sub
-
Dim alist As New ArrayList Here we have to create the object of the control and then u add the contol to the array if u have any doubt see this link http://www.devx.com/vb2themax/article/19907 alist.Add(aControl)