Export (0) Print
Expand All

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)

Not applicable.

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;
}

Windows CE, Windows Mobile for Pocket PC

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft