Question Detecting CheckBox CheckedChanged event

Bozz

Member
Joined
Jul 28, 2009
Messages
14
Programming Experience
Beginner
I would like MyProcess() to fire when I click on any of several checkboxes. I could do it like this...

Private Sub CheckBox_CheckedChanged(ByVal etc...) _
Handles CheckBox1.CheckedChanged, _
Handles CheckBox2.CheckedChanged, _
Handles CheckBox3.CheckedChanged
MyProcess()
End Sub

...but I have alot of checkboxes, and anyway, this method isn't very scalable.
Is there any other way for a form (or panel maybe) to detect mouse events on child controls kind of like the way the KeyPreview property of a form allows it to detect key events of it's child controls?
 
Last edited:
Back
Top