Share via


PenInputPanel.PenInputPanel(IntPtr) Constructor

Deprecated. Initializes a new instance of the PenInputPanel class and attaches it to a window handle. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

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

Syntax

'Declaration
Public Sub New ( _
    attachHandle As IntPtr _
)
'Usage
Dim attachHandle As IntPtr

Dim instance As New PenInputPanel(attachHandle)
public PenInputPanel (
    IntPtr attachHandle
)
public:
PenInputPanel (
    IntPtr attachHandle
)
public PenInputPanel (
    IntPtr attachHandle
)
public function PenInputPanel (
    attachHandle : IntPtr
)
Not applicable.

Parameters

  • attachHandle
    The window handle to attach the PenInputPanel object to.

Remarks

This constructor only creates a PenInputPanel object. It does not associate the object with a control or window. Use the AttachedEditControl property to associate the PenInputPanel with a control. Use the AttachedEditWindow property to associate the PenInputPanel with a window.

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.

Example

This C# example declares and creates a PenInputPanel object, thePenInPutPanel, associating it with the window handle of a TextBox control on the form.

[C#]

// Declare the PenInputPanel variable.
PenInputPanel thePenInputPanel;

// Create a PenInputPanel and attach it
// to the handle of a textbox control.
thePenInputPanel = new PenInputPanel(theTextBox.Handle);

This Microsoft® Visual Basic® .NET example declares and creates a PenInputPanel object, thePenInPutPanel, associating it with the window handle of a TextBox control on the form.

[Visual Basic]

' Create a PenInputPanel object and
' attach it to a TextBox control.
Dim thePenInputPanel As New PenInputPanel(theTextBox.Handle)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

PenInputPanel Class
PenInputPanel Members
Microsoft.Ink Namespace
PenInputPanel
PenInputPanel.AttachedEditControl