System.Windows.Forms.ToolStripItem.IsInputChar Method

Determines whether a character is an input character that the item recognizes.

Syntax

protected virtual bool IsInputChar (char charCode)

Parameters

charCode
The character to test.

Returns

true if the character should be sent directly to the item and not preprocessed; otherwise, false.

Remarks

This method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the System.Windows.Forms.ToolStripItem. If the Control.IsInputChar(char) method returns true, the specified character is sent directly to the System.Windows.Forms.ToolStripItem. However, if the method returns false, the character is preprocessed and only sent to the System.Windows.Forms.ToolStripItem if it is not consumed by the preprocessing phase. The preprocessing of a character includes checking whether the character is a mnemonic of another control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0