For any:
vb Code:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
For Each chk As CheckBox In Me.Controls.OfType(Of CheckBox)()
If Not chk Is DirectCast(sender, CheckBox) AndAlso chk.Checked Then
MsgBox("OK")
Exit For
End If
Next
End Sub
For all:
vb Code:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
For Each chk As CheckBox In Me.Controls.OfType(Of CheckBox)()
If Not chk Is DirectCast(sender, CheckBox) AndAlso Not chk.Checked Then Exit Sub
Next
MsgBox("OK")
End Sub