HeaderPane
Main
Hide
Share Link
Print

MouseHover Event, SftTree Class

Occurs when the mouse pointer rests on the control.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public new event EventHandler MouseHover;
Public Shadows Event MouseHover As EventHandler

Comments

Occurs when the mouse pointer rests on the control.

The pause required before this event is raised is defined by the SystemInformation.MouseHoverTime property.

The control's MouseMoveHoverTimer event is similar to this event. While the MouseHover event occurs only once until the mouse pointer leaves the control, the MouseMoveHoverTimer event occurs repeatedly until the mouse pointer leaves the control. The interval between MouseMoveHoverTimer events is defined using the SftTree.MouseHoverInterval property.

Examples

C#

            DumpValues("MouseDown", e);
        }

        private void sftTree1_MouseEnter(object sender, EventArgs e) {
            DumpValues("MouseEnter", e);
        }

        private void sftTree1_MouseHover(object sender, EventArgs e) {
            DumpValues("MouseHover", e);
        }

        private void sftTree1_MouseLeave(object sender, EventArgs e) {
            DumpValues("MouseLeave", e);
        }

        private void sftTree1_MouseMove(object sender, MouseEventArgs e) {

VB.NET

Private Sub SftTree1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles SftTree1.MouseDown
    DumpValues("MouseDown", e)
End Sub

Private Sub SftTree1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.MouseEnter
    DumpValues("MouseEnter", e)
End Sub

Private Sub SftTree1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.MouseHover
    DumpValues("MouseHover", e)
End Sub

Private Sub SftTree1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.MouseLeave
    DumpValues("MouseLeave", e)
End Sub

See Also SftTree Class | Classes | SftTree/NET 3.0