Shape.MouseDoubleClick Event

 

Occurs when the shape is double-clicked by the mouse.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

[BrowsableAttribute(true)]
public event MouseEventHandler MouseDoubleClick
public:
[BrowsableAttribute(true)]
event MouseEventHandler^ MouseDoubleClick {
    void add(MouseEventHandler^ value);
    void remove(MouseEventHandler^ value);
}
[<BrowsableAttribute(true)>]
member MouseDoubleClick : IEvent<MouseEventHandler,
    MouseEventArgs>
<BrowsableAttribute(True)>
Public Event MouseDoubleClick As MouseEventHandler

Remarks

The MouseDoubleClick event occurs when the user depresses a mouse button two times in quick succession when the pointer is over the shape. The time interval that distinguishes two single clicks from a double-click is determined by the mouse settings of the user's operating system.

The following series of events is raised by the shape when such a user action occurs:

MouseDown 

Click 

MouseClick 

MouseUp 

MouseDown 

DoubleClick 

MouseDoubleClick 

MouseUp 

Note

DoubleClick events are logically higher-level events of a shape. They may be raised by other user actions, such as shortcut key combinations.

For more information about how to handle events, see Handling and Raising Events.

Examples

The following example shows how to respond to the MouseDoubleClick event in an event handler. This example requires that you have a OvalShape control named OvalShape1 on a form.

private void ovalShape1_MouseDoubleClick(object sender, 
    System.Windows.Forms.MouseEventArgs e)
{
    ovalShape1.BringToFront();
}
Private Sub OvalShape1_MouseDoubleClick(
  ) Handles OvalShape1.MouseDoubleClick

    OvalShape1.BringToFront()
End Sub

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top