Share via


PenInputPanel.AutoShow Property

Deprecated. Gets or sets a Boolean value that indicates whether the pen input panel appears when focus is set on the attached control by using the pen. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Property AutoShow As Boolean
'Usage
Dim instance As PenInputPanel 
Dim value As Boolean 

value = instance.AutoShow

instance.AutoShow = value
public bool AutoShow { get; set; }
public:
property bool AutoShow {
    bool get ();
    void set (bool value);
}
public function get AutoShow () : boolean 
public function set AutoShow (value : boolean)

Property Value

Type: System.Boolean
Whether the pen input panel appears when focus is set by using the pen.

Value

Meaning

true

The pen input panel appears when focus is set using the pen. Default.

false

The pen input panel's appearance is controlled by the Visible property, rather than by whether or not the attached control has focus.

Remarks

Setting the AutoShow property to false disables activation of the pen input panel when the end user sets the focus to the attached control by using the pen.

If AutoShow is set to false, the Visible property controls the visibility of the pen input panel. Additionally, the PenInputPanel object must be properly attached to a window or control in order to display in the user interface.

When the AutoShow property is set to false, Tablet PC Input Panel does not show until the Visible property is set to true. At this point, Tablet PC Input Panel is displayed but no hover target is shown.

Examples

This C# example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit. It disables automatic activation of the pen input panel by setting the AutoShow property to false.

[C#]

// Declare, create, and attach a new PenInputPanel to an InkEdit control
PenInputPanel thePenInputPanel = new PenInputPanel(theInkEdit);

// Turn off AutoShow
thePenInputPanel.AutoShow = false;

This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit. It disables automatic activation of the pen input panel by setting the AutoShow property to false.

[Visual Basic]

' Declare, create, and attach a new PenInputPanel to an InkEdit control
Dim thePenInputPanel As New PenInputPanel(theInkEdit)

' Turn off AutoShow
thePenInputPanel.AutoShow = False

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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 Framework

Supported in: 3.0

See Also

Reference

PenInputPanel Class

PenInputPanel Members

Microsoft.Ink Namespace

PenInputPanel.Visible