Share via


PenInputPanel.Busy Property

Deprecated. Gets a Boolean value that indicates whether the PenInputPanel object is currently processing ink. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

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

Syntax

'Declaration
Public ReadOnly Property Busy As Boolean
'Usage
Dim instance As PenInputPanel 
Dim value As Boolean 

value = instance.Busy
public bool Busy { get; }
public:
property bool Busy {
    bool get ();
}
public function get Busy () : boolean

Property Value

Type: System.Boolean
Whether the the PenInputPanel object is currently processing ink.

Value

Meaning

true

The PenInputPanel object is currently processing ink.

false

The PenInputPanel object is not currently processing ink.

Remarks

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.

Examples

This C# example creates an event handler for a button click event, theButton_Click. Before processing the action from the button click, the handler checks to see if the PenInputPanel object, thePenInputPanel, is processing ink. If so, the event handler calls the CommitPendingInput method to force the PenInputPanel object to complete processing ink before proceeding.

[C#]

//...
private void theButton_Click(object sender, System.EventArgs e)
{
    // If the PenInputPanel is still processing ink...
    if (thePenInputPanel.Busy)
    {
        // Force the PenInputPanel to commit user input
        thePenInputPanel.CommitPendingInput();
    }

    // Process the action from the button click
    //...
}

This Microsoft® Visual Basic® .NET example creates an event handler for a button

click event, theButton_Click. Before processing the action from the button click, the handler checks to see if the PenInputPanel object, thePenInputPanel, is processing ink. If so, the event handler calls the CommitPendingInput method to force the PenInputPanel object to complete processing ink before proceeding.

[Visual Basic]

'...
Private Sub theButton_Click(ByVal sender As System.Object, _
                          ByVal e As System.EventArgs) _
                          Handles theButton.Click
    ' If the PenInputPanel is still processing ink...
    If thePenInputPanel.Busy Then
        ' Force the PenInputPanel to commit user input
        thePenInputPanel.CommitPendingInput()
    End If

    ' Process the action from the button click
    '...
End Sub

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

PenInputPanel Class

PenInputPanel Members

Microsoft.Ink Namespace

PenInputPanel.CommitPendingInput