Share via


PenInputPanel Constructor

Deprecated. Initializes a new instance of the PenInputPanel class that is not attached to any window or control. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New PenInputPanel()
public PenInputPanel()
public:
PenInputPanel()
public function PenInputPanel()

Remarks

Security noteSecurity Note:

If using under partial trust, this constructor requires SecurityPermissionFlag.AllFlags permission, in addition to the permissions required by PenInputPanel. See Security and Trust for more information.

Examples

This C# example demonstrates the default constructor of the PenInputPanel object. It creates a PenInputPanel object, thePenInputPanel, and attaches it to an existing control by assigning the control to the AttachedEditControl property.

[C#]

PenInputPanel thePenInputPanel = New PenInputPanel();
thePenInputPanel.AttachedEditControl = theTextBox;

This Microsoft® Visual Basic® .NET example demonstrates the default constructor of the PenInputPanel object. It creates a PenInputPanel object, thePenInPutPanel, and attaches it to an existing control by assigning the control to the AttachedEditControl property.

[Visual Basic]

Dim thePenInputPanel as New PenInputPanel()
thePenInputPanel.AttachedEditControl = theTextBox

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

PenInputPanel Overload

Microsoft.Ink Namespace

PenInputPanel

PenInputPanel.AttachedEditControl