PenInputPanel.PenInputPanel Constructor

PenInputPanel.PenInputPanel Constructor

Initializes a new instance of the PenInputPanel class and attaches it to a window handle.

Definition

Visual Basic .NET Public Sub PenInputPanel( _
ByVal attachHandle As IntPtr _
)
C# public PenInputPanel(
IntPtr attachHandle
);
Managed C++ public: PenInputPanel(
IntPtr *attachHandle
);

Parameters

attachHandle System.IntPtr. The window handle to attach the PenInputPanel object to.

Examples

[C#]

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

// Declare the PenInputPanel variable.
PenInputPanel thePenInputPanel;

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

[Visual Basic .NET]

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.

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

See Also