System.Windows.Forms.Control.MouseHover Event

Occurs when the mouse pointer rests on the control.

Syntax

public event EventHandler MouseHover

Remarks

A typical use of Control.MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the SystemInformation.MouseHoverTime property.

The Control.MouseHover event is defined and detected in connection with the SystemInformation.MouseHoverSize and SystemInformation.MouseHoverTime properties.

Mouse events occur in the following order:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]
Note:

The following events are not raised for the System.Windows.Forms.TabControl class unless there is at least one System.Windows.Forms.TabPage in the TabControl.TabPages collection: Control.Click, Control.DoubleClick, Control.MouseDown, Control.MouseUp, Control.MouseHover, Control.MouseEnter, Control.MouseLeave and Control.MouseMove. If there is at least one System.Windows.Forms.TabPage in the collection, and the user interacts with the tab control's header (where the System.Windows.Forms.TabPage names appear), the System.Windows.Forms.TabControl raises the appropriate event. However, if the user interaction is within the client area of the tab page, the System.Windows.Forms.TabPage raises the appropriate event.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0