PenInputPanel.AttachedEditControl Property

PenInputPanel.AttachedEditControl Property

Gets or sets the control that the PenInputPanel object is attached to.

Definition

Visual Basic .NET Public Property AttachedEditControl As Control
C# public Control AttachedEditControl { get; set; }
Managed C++ public: __property Control* get_AttachedEditControl();
public: __property void set_AttachedEditControl(Control*);

Property Value

System.Windows.Forms.Control. The control that the PenInputPanel object is attached to.

This property is read/write. This property has no default value.

Exceptions

COMException Leave Site:
ObjectDisposedException Leave Site:

Remarks

The AttachedEditControl and AttachedEditWindow properties are independent properties. Setting one does not necessarily update the other. Use the property that you originally used to attach the PenInputPanel object to a control or window.

Examples

[C#]

This C# example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditControl property.

// Declare and create a PenInputPanel
PenInputPanel thePenInputPanel = new PenInputPanel();

// Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditControl = theInkEdit;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditControl property.

' Declare and create a PenInputPanel
Dim thePenInputPanel As New PenInputPanel()

' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditControl = theInkEdit

See Also