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)

[BrowsableAttribute(true)]
public event MouseEventHandler MouseDoubleClick

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 

System_CAPS_noteNote

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.

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();
}

Return to top
Show: