|
-
Aug 2nd, 2010, 01:03 PM
#1
Thread Starter
New Member
Checkbox Array
Please help, ugh
I recently converted from VB6.0 to .Net 2005 and quickly realized control arrays are no longer used. In my larger project I create 50 check boxes on form load and want to take action on a check changed event when a user selects one of the check boxes.
Can someone please let me know how to reference the checkboxes once they're created.
Here is s simplified version of my code
Thank you
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
Dim CheckBox As New CheckBox()
CheckBox.Text = "Checkbox1"
CheckBox.Location = New Point(100, 50)
CheckBox.Size = New Size(95, 45)
Me.Controls.Add(CheckBox)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|