WorkflowDesignerMessageFilter.OnMouseDown Method (MouseEventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Occurs when a mouse button is clicked.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected virtual bool OnMouseDown(
	MouseEventArgs eventArgs


Type: System.Windows.Forms.MouseEventArgs

A MouseEventArgs that contains information about the event.

Return Value

Type: System.Boolean

true if the message is handled; otherwise, false.

OnMouseDown occurs when a mouse button is clicked.

The following code example shows how to override the OnMouseDown method 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, seeBasic Designer Hosting.

protected override bool OnMouseDown(MouseEventArgs eventArgs)
    //Allow other components to process this event by not returning true.
    this.mouseDown = true;
    return false;

.NET Framework
Available since 3.0
Return to top