This documentation is archived and is not being maintained.

ToolStrip.ProcessMnemonic Method

Note: This method is new in the .NET Framework version 2.0.

Processes a mnemonic character.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

protected internal override bool ProcessMnemonic (
	char charCode
protected boolean ProcessMnemonic (
	char charCode
protected internal override function ProcessMnemonic (
	charCode : char
) : boolean



The character to process.

Return Value

true if the character was processed as a mnemonic by the control; otherwise, false.

The ProcessMnemonic method is called to give a control the opportunity to process a mnemonic character. This method should determine whether the control is in a state to process mnemonics and whether the given character represents a mnemonic. If so, the method should perform the action associated with the mnemonic and return true. If not, the method should return false.

Implementations of this method often use the Control.IsMnemonic method to determine whether the given character matches a mnemonic in the control's text.

This default implementation of the ProcessMnemonic method simply returns false, to indicate that the control has no mnemonic.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0