Note An error occurs if the InkOverlay object is not disabled before setting this property. To disable the InkOverlay object, set the Enabled property to FALSE. You can then set the AttachMode property and re-enable the object by setting the Enabled property to TRUE.
Caution If AttachMode is set to InFront and then a control is added to the InkOverlay's attached control, then you will have to reset the InkOverlay's hWnd. First set Enabled to FALSE, then set the hWnd property, and then set Enabled to TRUE.