I am able to draw a single checkbox onto a form using this code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim checkBox As New CheckBox()
Me.Controls.Add(checkBox)
checkBox.Location = New Point(10, 10)
checkBox.Text = "Test"
checkBox.Checked = True
checkBox.Size = New Size(100, 20)
End Sub
But what I need to be able to do is have multiple checkboxes on a single form at one time.
Also how would I then check through all the checkboxes to see which ones have been checked?
Thanks for any help.
Aucun commentaire:
Enregistrer un commentaire