ToolStripArray.MouseHover 事件

定义

在鼠标指针停放在控件上时发生。Occurs when the mouse pointer rests on the control.

public:
 event EventHandler ^ MouseHover;
public event EventHandler MouseHover;
member this.MouseHover : EventHandler 
Public Custom Event MouseHover As EventHandler 
Public Event MouseHover As EventHandler 

事件类型

EventHandler

注解

的典型用法 MouseHover 是在鼠标悬停在控件上指定区域内的控件上时显示工具提示 ("悬停矩形" ) 。A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around the control (the "hover rectangle"). 引发此事件所需的暂停由属性指定(以毫秒为单位) MouseHoverTimeThe pause required for this event to be raised is specified in milliseconds by the MouseHoverTime property.

MouseHover在与和属性的连接中定义和检测到事件 MouseHoverSize MouseHoverTimeThe MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime properties.

鼠标事件按下列顺序发生:Mouse events occur in the following order:

MouseEnter

MouseMove

MouseHover / MouseDown / MouseWheel

MouseUp

MouseLeave

有关如何处理事件的详细信息,请参阅 处理和引发事件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.

适用于

另请参阅