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
'Declaração
<BrowsableAttribute(True)> _
Public Event MouseDoubleClick As MouseEventHandler
[BrowsableAttribute(true)]
public event MouseEventHandler MouseDoubleClick
[BrowsableAttribute(true)]
public:
event MouseEventHandler^ MouseDoubleClick {
void add (MouseEventHandler^ value);
void remove (MouseEventHandler^ value);
}
[<BrowsableAttribute(true)>]
member MouseDoubleClick : IEvent<MouseEventHandler,
MouseEventArgs>
JScript does not support events.
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:
MouseDoubleClick
Observação
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 Consuming 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 Sub OvalShape1_MouseDoubleClick(
) Handles OvalShape1.MouseDoubleClick
OvalShape1.BringToFront()
End Sub
private void ovalShape1_MouseDoubleClick(object sender,
System.Windows.Forms.MouseEventArgs e)
{
ovalShape1.BringToFront();
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks Namespace
Other Resources
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)