J
James
I have three checkbox that I want to check the state (checkbox1
checkbox2 checkbox3
I do the following
Dim i As Integer
Dim chk As New CheckBox
For i = 1 To 3
chk = (Controls("CheckBox" & CStr(i)))
If chk.CheckState = CheckState.Unchecked Then
.....Code
End If
Next
This works if the checkbox are NOT in a Panel only. Why??
checkbox2 checkbox3
I do the following
Dim i As Integer
Dim chk As New CheckBox
For i = 1 To 3
chk = (Controls("CheckBox" & CStr(i)))
If chk.CheckState = CheckState.Unchecked Then
.....Code
End If
Next
This works if the checkbox are NOT in a Panel only. Why??