Compartir a través de


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);
}
/** @property */
public IntPtr get_AttachedEditWindow ()

/** @property */
public void set_AttachedEditWindow (IntPtr value)
public function get AttachedEditWindow () : IntPtr

public function set AttachedEditWindow (value : IntPtr)
Not applicable.

Property Value

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 noteSecurity 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.

Example

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 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

PenInputPanel Class
PenInputPanel Members
Microsoft.Ink Namespace
PenInputPanel.AttachedEditControl