WorkflowDesignerMessageFilter.OnMouseHover(MouseEventArgs) Method

Definition

Occurs when the mouse pointer pauses above an object.

protected:
 virtual bool OnMouseHover(System::Windows::Forms::MouseEventArgs ^ eventArgs);
protected virtual bool OnMouseHover (System.Windows.Forms.MouseEventArgs eventArgs);
abstract member OnMouseHover : System.Windows.Forms.MouseEventArgs -> bool
override this.OnMouseHover : System.Windows.Forms.MouseEventArgs -> bool
Protected Overridable Function OnMouseHover (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 OnMouseHover 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, see Basic Designer Hosting.

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

Remarks

OnMouseHover occurs when the mouse pointer hovers above an object.

Applies to

See also