Method OnKeyPress
OnKeyPress(KeyPressEventArgs)
Called when the KeyPress event is raised.
protected virtual void OnKeyPress(KeyPressEventArgs e)
Parameters
eKeyPressEventArgsA KeyPressEventArgs that contains the event data.
Remarks
Derived classes can override this method to handle the event without attaching a delegate.