TabControlArray.MouseHover 事件


發生於滑鼠指標停留在控制項上時。Occurs when the mouse pointer rests on the control.

 event EventHandler ^ MouseHover;
public event EventHandler MouseHover;
member this.MouseHover : EventHandler 
Public Custom Event MouseHover As EventHandler 
Public Event MouseHover As 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"). 此事件引發所需的暫停是以毫秒為單位,由 MouseHoverTime 屬性指定。The pause required for this event to be raised is specified in milliseconds by the MouseHoverTime property.

MouseHover 事件會在與 MouseHoverSizeMouseHoverTime 屬性的連接中定義和偵測。The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime properties.

滑鼠事件依下列順序發生:Mouse events occur in the following order:



MouseHover / MouseDown / MouseWheel



如需如何處理事件的詳細資訊,請參閱處理和引發事件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.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework.NET Framework 實作有顯著差異時,才需要這些項目。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.