InputModeEditor.SetInputMode Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies the input mode on a Smartphone.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
Syntax
'Declaration
Public Shared Sub SetInputMode ( _
control As Control, _
mode As InputMode _
)
'Usage
Dim control As Control
Dim mode As InputMode
InputModeEditor.SetInputMode(control, mode)
public static void SetInputMode(
Control control,
InputMode mode
)
public:
static void SetInputMode(
Control^ control,
InputMode mode
)
static member SetInputMode :
control:Control *
mode:InputMode -> unit
Parameters
- control
Type: System.Windows.Forms.Control
A TextBox control.
- mode
Type: Microsoft.WindowsCE.Forms.InputMode
One of the InputMode values.
Remarks
You can set the input mode only on a TextBox.
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);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows Mobile for Smartphone
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