Check Box Events : CheckedChanged And CheckStateChanged?Sep 25, 2010
I can't understand one thing : whenever I write the code for the Changed event of a check box , I simply double click on it and add the lines I wish. However,sometimes the event that is created is the CheckedChanged while for others , the CheckStateChanged .Moreover , the 1st ByVal variable is different :
Private Sub MyCheckBoxAAA_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyCheckBoxAAA.CheckStateChanged[code]......
Why is this happening ? Also , some times , the sender is not declared as System.Object but as Object .The only thing I have mentioned is that the first seems to happen on lonely controls while the second seems to happen on controls that are part of a control array