D
David A. Beck
I have several checkboxes in a group. Only two can be checked at any one
time. I made one _CheckChanged event to handle all of these checkboxes. By
setting the AutoPostback = True on them all I can total up the number of
boxes that are checked and set a nastygram if more than two are checked. I
would also like to uncheck the offending checkbox (the third one). Can
anyone tell me how to get the ID of the checkbox that raised the event?
David A. Beck
Private Sub cbxOBJ_Preserve_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cbxOBJ_Preserve.CheckedChanged,
cbxOBJ_Investment.CheckedChanged, cbxOBJ_CapitalAppreciation.CheckedChanged,
cbxOBJ_TradingProfit.CheckedChanged, cbxOBJ_Speculation.CheckedChanged
time. I made one _CheckChanged event to handle all of these checkboxes. By
setting the AutoPostback = True on them all I can total up the number of
boxes that are checked and set a nastygram if more than two are checked. I
would also like to uncheck the offending checkbox (the third one). Can
anyone tell me how to get the ID of the checkbox that raised the event?
David A. Beck
Private Sub cbxOBJ_Preserve_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cbxOBJ_Preserve.CheckedChanged,
cbxOBJ_Investment.CheckedChanged, cbxOBJ_CapitalAppreciation.CheckedChanged,
cbxOBJ_TradingProfit.CheckedChanged, cbxOBJ_Speculation.CheckedChanged