Share via


InkCollector.AttachedControl Property

Gets or sets the control to which the InkCollector object is attached.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Property AttachedControl As Control
'Usage
Dim instance As InkCollector
Dim value As Control

value = instance.AttachedControl

instance.AttachedControl = value
public Control AttachedControl { get; set; }
public:
property Control^ AttachedControl {
    Control^ get ();
    void set (Control^ value);
}
/** @property */
public Control get_AttachedControl ()

/** @property */
public void set_AttachedControl (Control value)
public function get AttachedControl () : Control

public function set AttachedControl (value : Control)
Not applicable.

Property Value

The control to which the InkCollector object is attached.

Value

Meaning

a null reference (Nothing in Visual Basic)

The InkCollector object is not attached to a control.

System.Windows.Forms.Control

The control to which the InkCollector object is attached.

Remarks

The AttachedControl or Handle property must be set before the InkCollector object can be enabled.

If the InkCollector object is attached to a window handle, setting this property attaches the InkCollector to a control and clears the Handle property.

Note

The InkCollector must be disabled before setting this property. To disable the InkCollector, set the Enabled property to false. You can then set this property and re-enable the object by setting the Enabled property to true.

If you use the AttachedControl property and the Handle property in your application, you will get a security exception when you run the application in the Internet zone. This is because the Handle property is not valid in the partial trust environment of the Internet zone, so the Tablet PC operating system reverts to the AttachedControl property.

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkCollector Class
InkCollector Members
Microsoft.Ink Namespace
InkCollector
InkCollector.Enabled
InkCollector.Handle