I have two radio buttons in a single group on a form...
I am trying to understand how the Validating and Validated events work; however, there seems to be some inconsistency issues -
for example:
On initial form load - RadioButton1 has focused, the following event gets triggered:
RadioButton1_CheckedChanged
I switch the focus from RadioButton1 to RadioButton2 and the following events get triggered (in this order):
RadioButton1_Validating
RadioButton2_Validating
RadioButton2_Validated
RadioButton1_Validated
RadioButton1_CheckedChanged
RadioButton2_CheckedChanged
I switch the focus back to RadioButton1 and only the following events get triggered:
RadioButton2_CheckedChanged
RadioButton1_CheckedChanged
I would have thought that this would have been equaled to above...
Closing the form:
RadioButton1_Validating
RadioButton2_Validating
RadioButton2_Validated
RadioButton1_Validated
What I am trying to do is if a user checks on a radio buttom to see if other controls have information in them and then give the user an option to cancel the check changed...
I am trying to understand how the Validating and Validated events work; however, there seems to be some inconsistency issues -
for example:
On initial form load - RadioButton1 has focused, the following event gets triggered:
RadioButton1_CheckedChanged
I switch the focus from RadioButton1 to RadioButton2 and the following events get triggered (in this order):
RadioButton1_Validating
RadioButton2_Validating
RadioButton2_Validated
RadioButton1_Validated
RadioButton1_CheckedChanged
RadioButton2_CheckedChanged
I switch the focus back to RadioButton1 and only the following events get triggered:
RadioButton2_CheckedChanged
RadioButton1_CheckedChanged
I would have thought that this would have been equaled to above...
Closing the form:
RadioButton1_Validating
RadioButton2_Validating
RadioButton2_Validated
RadioButton1_Validated
What I am trying to do is if a user checks on a radio buttom to see if other controls have information in them and then give the user an option to cancel the check changed...