O
OpticTygre
I have 5 checkboxes on a form, and a checkbox.checkchanged event to handle
all boxes:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CheckBox1.CheckedChanged,
CheckBox2.CheckedChanged, CheckBox3.CheckedChanged,
CheckBox4.CheckedChanged, CheckBox5.CheckedChanged
In that sub, how can I tell which checkbox was the one that was checked?
Sender.gettype only returns the type of the object, not the specific object.
Is there another way I can tell which checkbox is which?
Thanks.
all boxes:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CheckBox1.CheckedChanged,
CheckBox2.CheckedChanged, CheckBox3.CheckedChanged,
CheckBox4.CheckedChanged, CheckBox5.CheckedChanged
In that sub, how can I tell which checkbox was the one that was checked?
Sender.gettype only returns the type of the object, not the specific object.
Is there another way I can tell which checkbox is which?
Thanks.