PenInputPanel.PenInputPanel Constructor
PenInputPanel.PenInputPanel Constructor |
Initializes a new instance of the PenInputPanel class that is not attached to any window or control.
Definition
Visual Basic .NET Public Sub PenInputPanel() C# public PenInputPanel(); Managed C++ public: PenInputPanel();
Exceptions
Remarks
This constructor only creates a PenInputPanel object. It does not associate the object with a control. Use the AttachedEditControl property to associate the PenInputPanel with a control.
Examples
[C#]
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.
PenInputPanel thePenInputPanel = New PenInputPanel(); thePenInputPanel.AttachedEditControl = theTextBox;
[Visual Basic .NET]
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.
Dim thePenInputPanel as New PenInputPanel() thePenInputPanel.AttachedEditControl = theTextBox
See Also