HeaderPane
Main
Hide
Share Link
Print

MouseWheel Event, SftTabs Class

Occurs when the mouse wheel moves while the control has focus.

Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public event MouseEventHandler MouseWheel;
Public Event MouseWheel As MouseEventHandler

Comments

Occurs when the mouse wheel moves while the control has focus.

Examples

C# View entire sample code

            DumpValues("MouseMoveTimer", e);
        }

        private void sftTabs1_MouseUp(object sender, MouseEventArgs e) {
            DumpValues("MouseUp", e);
        }

        private void sftTabs1_MouseWheel(object sender, MouseEventArgs e) {
            DumpValues("MouseWheel", e);
        }

        // The control validates the control with the focus before the user switches to another tab
        private void textBox1_Validating(object sender, System.ComponentModel.CancelEventArgs e) {
            if (textBox1.Text.Trim() == "") {
                e.Cancel = true;
                DumpValues("textBox1 Validating (canceled, the text box is empty)", e);

VB.NET View entire sample code

Private Sub SftTabs1_MouseMoveTimer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.MouseMoveTimer
    DumpValues("MouseMoveTimer", e)
End Sub

Private Sub SftTabs1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles SftTabs1.MouseUp
    DumpValues("MouseUp", e)
End Sub

Private Sub SftTabs1_MouseWheel(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles SftTabs1.MouseWheel
    DumpValues("MouseWheel", e)
End Sub

' The control validates the control with the focus before the user switches to another tab
Private Sub TextBox1_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
    If TextBox1.Text.Trim() = "" Then
        e.Cancel = True

See Also SftTabs Class | Classes | SftTabs/NET 3.0