DataGridViewTextBoxEditingControl.ProcessKeyEventArgs(Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.