InputMode Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the input modes that can be set on the Smartphone using an InputModeEditor.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

Syntax

'Declaration
Public Enumeration InputMode
'Usage
Dim instance As InputMode
public enum InputMode
public enum class InputMode
type InputMode

Members

Member name Description
Supported by the .NET Compact Framework Default The user’s preferred input mode, based on the user’s last input mode selection in a control.
Supported by the .NET Compact Framework AlphaABC This is the conventional method for entering text, called multi-tap, which requires up to four key presses depending on the letter being entered.
Supported by the .NET Compact Framework AlphaCurrent Maintains the current T9 or ABC selection for entering alpha characters as set by the user by holding down the star key (*) on a Smartphone. This mode is shared across the system so that any text box set with this mode, including text box controls in native Windows CE applications, will adhere to the last T9 or ABC choice as set by the user. This ability to match user preferences makes this the preferred input mode for text boxes that accept alpha characters.

Note that if the user selects a numeric input mode (123) with the star key for a text box set to AlphaCurrent, the text box will only accept numeric characters but will be set to the current alpha input mode (T9 or ABC) when the text box loses and regains focus .

Supported by the .NET Compact Framework AlphaT9 This input mode is the T9 predictive text input feature on the Smartphone.
Supported by the .NET Compact Framework Numeric This input mode accepts only numeric characters and symbols.

Remarks

You can set the input mode only on a TextBox.

Supported on Smartphone 2003.

Using this class on a device other than the Smartphone or on a control other than a TextBox fails but no exception is thrown.

Topic Location
How to: Set Smartphone Input Modes .NET Compact Framework
How to: Set Smartphone Input Modes .NET Compact Framework
How to: Set Smartphone Input Modes .NET Compact Framework

Examples

The following code example sets a text box to have a numeric input mode. This code example is part of a larger example provided for the InputModeEditor class.

' Set input mode for phone number text box to Numeric.
InputModeEditor.SetInputMode(textBox2, InputMode.Numeric)
// Set input mode for phone number text box to Numeric.
InputModeEditor.SetInputMode(textBox2, InputMode.Numeric);

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

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

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsCE.Forms Namespace

Other Resources

How to: Set Smartphone Input Modes