WorkflowDesignerMessageFilter.OnMouseUp(MouseEventArgs) Method

Definition

Occurs when the mouse button is released.

protected:
 virtual bool OnMouseUp(System::Windows::Forms::MouseEventArgs ^ eventArgs);
protected virtual bool OnMouseUp (System.Windows.Forms.MouseEventArgs eventArgs);
abstract member OnMouseUp : System.Windows.Forms.MouseEventArgs -> bool
override this.OnMouseUp : System.Windows.Forms.MouseEventArgs -> bool
Protected Overridable Function OnMouseUp (eventArgs As MouseEventArgs) As Boolean

Parameters

eventArgs
MouseEventArgs

A MouseEventArgs that contains information about the event.

Returns

true if the message is handled; otherwise, false.

Examples

The following code example shows how to override the OnMouseUp method to return the scroll position and to return false so that other components in the designer architecture can process the method.

This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. For more information, see Basic Designer Hosting.

protected override bool OnMouseUp(MouseEventArgs eventArgs)
{
    //Allow other components to process this event by not returning true.
    mouseDown = false;
    return false;
}
Protected Overrides Function OnMouseUp(ByVal eventArgs As MouseEventArgs) As Boolean
    ' Allow other components to process this event by not returning true.
    mouseDown = False
    Return False
End Function

Remarks

OnMouseUp occurs when you release a mouse button.

Applies to

See also