Previews a keyboard message and returns a value indicating if the key was consumed.
[Visual Basic] Overrides Protected Function ProcessKeyPreview( _ ByRef m As Message _ ) As Boolean [C#] protected override bool ProcessKeyPreview( ref Message m ); [C++] protected: override bool ProcessKeyPreview( Message** m ); [JScript] protected override function ProcessKeyPreview( m : Message ) : Boolean;
true, if the key was consumed; otherwise, false.
This method is called by a child control when the child control receives a keyboard message. The child control calls this method before generating any keyboard events for the message. If this method returns true, the child control considers the message consumed and does not generate any keyboard events.
DataGrid Class | DataGrid Members | System.WinForms Namespace