ToolStripArray.MouseDoubleClick 事件

定义

在鼠标双击控件时发生。Occurs when the control is double-clicked by the mouse.

public:
 event System::Windows::Forms::MouseEventHandler ^ MouseDoubleClick;
public event System.Windows.Forms.MouseEventHandler MouseDoubleClick;
member this.MouseDoubleClick : System.Windows.Forms.MouseEventHandler 
Public Custom Event MouseDoubleClick As MouseEventHandler 
Public Event MouseDoubleClick As MouseEventHandler 

事件类型

MouseEventHandler

注解

当指针位于形状上方时单击鼠标按钮通常会从控件引发以下系列事件:Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the control:

MouseDown

Click

MouseClick

MouseUp

按用户操作系统的鼠标设置所确定,两次单击就会正常运行, DoubleClick 而不会生成事件而不是第二个 MouseClick 事件。Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will generate a DoubleClick event instead of the second MouseClick event.

备注

Click 事件是形状的逻辑上更高级别的事件。Click events are logically higher-level events of a shape. 它们通常由其他操作引发,例如当形状有焦点时按 ENTER 键。They are often raised by other actions, such as pressing the ENTER key when the shape has focus.

有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

另请参阅