DataGridViewTextBoxEditingControl::ProcessKeyEventArgs Method (Message%)
.NET Framework (current version)
Processes key events.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual bool ProcessKeyEventArgs( Message% m ) override
Parameters
- m
-
Type:
System.Windows.Forms::Message%
A Message indicating the key that was pressed.
Return Value
Type: System::Booleantrue if the key event was handled by the editing control; otherwise, false.
This method ensures that the ENTER key is ignored so that carriage return and line feeds aren't stored in the cell value. This method also allows the cell contents to be selected when CTRL+A is pressed.
SecurityPermission
for immediate callers to use this method. Demand value: LinkDemand. Associated enumeration: UnmanagedCode.
.NET Framework
Available since 2.0
Available since 2.0
Show: