PenInputPanel Constructor (IntPtr)
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 function PenInputPanel(
attachHandle : IntPtr
)
Parameters
attachHandle
Type: System.IntPtrThe 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 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 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 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