Raises the OnKeyPress event.
[Visual Basic] Overrides Protected Sub OnKeyPress( _ ByVal kpe As KeyPressEventArgs _ ) [C#] protected override void OnKeyPress( KeyPressEventArgs kpe ); [C++] protected: override void OnKeyPress( KeyPressEventArgs* kpe ); [JScript] protected override function OnKeyPress( kpe : KeyPressEventArgs );
Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.
Notes to Inheritors When overriding OnKeyPress in a derived class, be sure to call the base class's OnKeyPress method.
DataGrid Class | DataGrid Members | System.WinForms Namespace