0
Reply

Validation Required

dmaddigan

dmaddigan

Nov 16 2004 10:21 PM
1.7k
Hi folks, Just authoring my first VB .net application and need some help. In the situation with an MDI Parent Form and an open Child Form: ... if the user changes data in a TextBox control on the Child Form (and the cursor remains in the TextBox control) and then the user clicks on the MDI Parent Form, the Validating and Validated events for the TextBox on the Child Form are not triggered. Of course if the user were to tab out of the TextBox on the Child Form before clicking on the MDI Parent Form, the validation process would occur. I have also found that if the user were to change the data and then try to close the Child Form, the validation process kicks in and if there are errors the Child Form remains open with the ErrorProvider message. How can I force a validation on an active TextBox control on an open Child Form before the MDI Parent Form is activated? Donna