Share via


InputPanel.Enabled Property

Gets or sets a value indicating whether the soft input panel (SIP) is enabled or disabled.

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

Syntax

'Declaration
Public Property Enabled As Boolean
'Usage
Dim instance As InputPanel
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
public bool Enabled { get; set; }
public:
property bool Enabled {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_Enabled ()

/** @property */
public void set_Enabled (boolean value)
public function get Enabled () : boolean

public function set Enabled (value : boolean)

Property Value

true if the SIP is enabled; otherwise, false.

Remarks

This SIP is enabled when it appears in the application.

When you change the Enabled property to true or false, the EnabledChanged event is raised.

Example

The following code example displays the SIP when a text box receives focus. This code example is part of a larger example provided for the InputPanel component.

Private Sub TextBox1_GotFocus(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles TextBox1.GotFocus
 ' Display the SIP.
 ' Note that the EnabledChanged event occurs
 ' whenever the SIP is enabled or disabled.
 InputPanel1.Enabled = True
End Sub
private void textBox1_GotFocus(object sender, System.EventArgs e)
{
    // Display the SIP.
    // Note that the EnabledChanged event occurs
    // whenever the SIP is enabled or disabled.
    inputPanel1.Enabled = true;

}

.NET Framework Security

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

Platforms

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.

Version Information

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

InputPanel Class
InputPanel Members
Microsoft.WindowsCE.Forms Namespace
EnabledChanged