Share via


InkEdit.UseMouseForInput Property

Gets or sets a value that indicates whether the mouse can be used as an input device for the InkEdit control.

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

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property UseMouseForInput As Boolean
'Usage
Dim instance As InkEdit 
Dim value As Boolean 

value = instance.UseMouseForInput

instance.UseMouseForInput = value
[BrowsableAttribute(true)]
public bool UseMouseForInput { get; set; }
[BrowsableAttribute(true)]
public:
property bool UseMouseForInput {
    bool get ();
    void set (bool value);
}
public function get UseMouseForInput () : boolean 
public function set UseMouseForInput (value : boolean)

Property Value

Type: System.Boolean
true if the mouse can be used as an input device for the InkEdit control; otherwise, false.

Remarks

This property should only be changed if the Status property returns the InkEditStatus enumeration value, Idle.

Note   If you are developing applications on a computer that is not running Microsoft® Windows® XP Tablet PC Edition, you must set the UseMouseForInput property to true in order to use the mouse as an input device when testing an InkEdit control in your application.

Examples

In this example, the InkEdit control is set to accept input from the mouse.

If InkEditStatus.Idle = mInkEdit.Status Then
    mInkEdit.UseMouseForInput = True 
End If
if (InkEditStatus.Idle == mInkEdit.Status)
{
    mInkEdit.UseMouseForInput = true;
}

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

See Also

Reference

InkEdit Class

InkEdit Members

Microsoft.Ink Namespace