PenInputPanel.PenInputPanel Constructor

PenInputPanel.PenInputPanel Constructor

Creates a PenInputPanel object and attaches it to the specified control.

Definition

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

Parameters

attachControl System.Windows.Forms.Control. The control to attach the PenInputPanel object to.

Examples

[C#]

This C# example creates a PenInputPanel object, thePenInputPanel, attaching it to the control, theTextBox, that is passed into the contructor.

// Declare the PenInputPanel variable.
PenInputPanel thePenInputPanel;

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

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, attaching it to the control, theTextBox, that is passed into the contructor.

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

See Also