You can wire up the event handlers, too, to directly pass the event from a child control as the event of the parent control..that txt Foo.
Key Press simply invokes the On Key Press method of the parent control.
Before you ask, and someone always does, these examples will currently work in the following browsers: Safari 5, Chrome 6, Opera 9, Firefox 4 Beta and the i Phone/i Pad.
Also each browser has a slightly different default behaviour.
the only difference between a true event and that is that an event can have more than one handler delegate attached to it, and will invoke all of them when raised.
External Validation: Survey and audit process by external agency to assure quality of NHSN surveillance and reporting. None Exit For End If End If Next Note this version does not validate controls nested within other container controls, such as Group Boxes, I would include the above in a recursive subroutine.However you can in my opinion for ever do (not tested) sub Button Click event textbox1_validating(textbox1,nothing) textbox2_validating(textbox2,nothing) etc.When execution retruns from the Validating event, if the Is Valid property is set to false, the Validation Error event is fired.
In the case where a validation session could potentially involve more than one control (as is the case when the Validate method is called), the Validating event fires once for each control being validated. Hope this helps Jay "norton" Hi All, I am writing a simple win form which contains a button, when user click the button i want to validate all the other textbox and see if there is anything goes wrong may i know how can i trigger the validating event for all text box?