Поделиться через


PenInputPanel.Busy Property

PenInputPanel.Busy Property

Gets a Boolean value that indicates whether the PenInputPanel object is currently processing ink.

Definition

Visual Basic .NET Public ReadOnly Property Busy As Boolean
C# public bool Busy { get; }
Managed C++ public: __property bool* get_Busy();

Property Value

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

This property is read-only. This property has no default value.

true The PenInputPanel object is currently processing ink.
false The PenInputPanel object is not currently processing ink.

Exceptions

ObjectDisposedException Leave Site:

Examples

[C#]

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.

//...
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
    //...
}

[Visual Basic .NET]

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.

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

See Also