PenInputPanel.AttachedEditWindow Property
Deprecated. Gets or sets the window handle that the PenInputPanel object is attached to. PenInputPanel has been replaced by Microsoft.Ink.TextInput.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Property AttachedEditWindow As IntPtr
'Usage
Dim instance As PenInputPanel
Dim value As IntPtr
value = instance.AttachedEditWindow
instance.AttachedEditWindow = value
public IntPtr AttachedEditWindow { get; set; }
public:
property IntPtr AttachedEditWindow {
IntPtr get ();
void set (IntPtr value);
}
public function get AttachedEditWindow () : IntPtr
public function set AttachedEditWindow (value : IntPtr)
Property Value
Type: System.IntPtr
The window handle that the PenInputPanel object is attached to.
Remarks
The object or control that a PenInputPanel object is attached to may, on occasion, be moved to a window with a new window handle. For example, you may update an application and change the window that an object or control is attached to. In cases such as this, if the AttachedEditControl property for that instance of the PenInputPanel object is set to the object or control, then the AttachedEditWindow property is updated automatically when the window handle of the attached control changes. If the AttachedEditControl property is not set, then you must update the window handle for the PenInputPanel object when the window handle for the attached object or control changes.
AttachedEditControl and AttachedEditWindow 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.
Security Note: |
---|
If using under partial trust, this property requires SecurityPermissionFlag.AllFlags permission, in addition to the permissions required by PenInputPanel. See Security and Trust for more information. |
Examples
This C# example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditWindow property.
[C#]
// Declare and create a PenInputPanel
PenInputPanel thePenInputPanel = new PenInputPanel();
// Attach the PenInputPanel to the window handle of an InkEdit control
thePenInputPanel.AttachedEditWindow = theInkEdit.Handle;
This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditWindow property.
[Visual Basic]
' Declare a new PenInputPanel object
Dim thePenInputPanel As PenInputPanel
' Create the PenInputPanel
Set thePenInputPanel = New PenInputPanel
' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditWindow = theInkEdit.hWnd
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0