Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validating / Validated Events -- Inconsistent...

Status
Not open for further replies.

AZSEEK

Programmer
Feb 13, 2003
84
0
0
US
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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top