DataGrid::ProcessKeyPreview Method (Message%)
.NET Framework (current version)
Previews a keyboard message and returns a value indicating if the key was consumed.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual bool ProcessKeyPreview( Message% m ) override
Parameters
- m
-
Type:
System.Windows.Forms::Message%
A Message that contains data about the event. The parameter is passed by reference.
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: