Compartir a través de


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 ();
}
/** @property */
public boolean get_Busy ()
public function get Busy () : boolean
Not applicable.

Property Value

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.

Example

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