Redigera

Dela via


DataGridViewTextBoxEditingControl.ProcessKeyEventArgs(Message) Method

Definition

Processes key events.

protected:
 override bool ProcessKeyEventArgs(System::Windows::Forms::Message % m);
protected override bool ProcessKeyEventArgs (ref System.Windows.Forms.Message m);
override this.ProcessKeyEventArgs : Message -> bool
Protected Overrides Function ProcessKeyEventArgs (ByRef m As Message) As Boolean

Parameters

m
Message

A Message indicating the key that was pressed.

Returns

true if the key event was handled by the editing control; otherwise, false.

Remarks

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.

Applies to

See also