Adds an event handler for the validating event. The validating event occurs when the control loses focus and a control that causes validation gains focus. This is where users can write code to validate the current values of the control.
[Visual Basic] Overridable Public Sub AddOnValidating( _ ByVal handler As EventHandler _ ) [C#] public virtual void AddOnValidating( EventHandler handler ); [C++] public: virtual void AddOnValidating( EventHandler* handler ); [JScript] public function AddOnValidating( handler : EventHandler );
Control Class | Control Members | System.WinForms Namespace | RemoveOnValidating