System.Windows.Forms.TextBox.IsInputKey Method

Determines whether the specified key is an input key or a special key that requires preprocessing.

Syntax

protected override bool IsInputKey (Keys keyData)

Parameters

keyData
One of the key's values.

Returns

true if the specified key is an input key; otherwise, false.

Remarks

The TextBox.IsInputKey(Keys) method returns true when keyData includes the Keys.Return value and the TextBox.AcceptsReturn property is true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0