This documentation is archived and is not being maintained.

InputPanel.CurrentInputMethod Property

Gets or sets the input method for the Pocket PC.

Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)

public InputMethod CurrentInputMethod { get; set; }
/** @property */
public InputMethod get_CurrentInputMethod ()

/** @property */
public void set_CurrentInputMethod (InputMethod value)

public function get CurrentInputMethod () : InputMethod

public function set CurrentInputMethod (value : InputMethod)

Property Value

An InputMethod.

You can set this property to any of the available input methods on the device.

The following code example sets this property to a method selected in a list box. This code example is part of a larger example provided for the InputPanel.InputMethodCollection class.

// Get the selected input method from the list box.
string strIM;
strIM = listBox1.SelectedItem.ToString();

// Iterate through the input method collection.
// When there is a match with the input method
// selected in the list box, set the
// CurrentInputMethod property to the selected method.
foreach (InputMethod im in ip.InputMethods)
 if (im.Name == strIM)
  // Change the input method.
  ip.CurrentInputMethod = im;

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows CE, Windows Mobile for Pocket PC

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

.NET Compact Framework

Supported in: 2.0