What's I'm trying to do is disable and enable a group of checkboxes. I keep getting a stack overflow error.
Code:
If chkStatusAll.Checked Then
For Each controlItem As CheckBox In grpStatus.Controls
With controlItem
.Checked = False
.Enabled = False
End With
Next
chkStatusAll.Enabled = True
chkStatusAll.Checked = True
Else
For Each controlItem As CheckBox In grpStatus.Controls
With controlItem
.Enabled = True
.Checked = False
End With
Next
chkStatusAll.Checked = False
End If