HeaderPane
Main
Hide
Share Link
Print

HotTrackSelection Property, SftBox Class

Defines whether the item under the mouse is selected in the open dropdown.

Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public bool HotTrackSelection { get; set; }
Public Property HotTrackSelection As Boolean

Value

True to select the item under the mouse, False to select items only by clicking and with the keyboard.

The default value is True.

Comments

Defines whether the item under the mouse is selected in the open dropdown.

The item becomes the combo box's selection only when it is clicked or chosen with Enter.

Examples

C# View entire sample code

        private void checkResizable_CheckedChanged(object sender, EventArgs e) {
            foreach (SftBox box in boxes)
                box.DropDownResizable = checkResizable.Checked;
        }

        private void checkHotTrack_CheckedChanged(object sender, EventArgs e) {
            foreach (SftBox box in boxes)
                box.HotTrackSelection = checkHotTrack.Checked;
        }

        private void checkDropOnFocus_CheckedChanged(object sender, EventArgs e) {
            foreach (SftBox box in boxes)
                box.DropOnFocus = checkDropOnFocus.Checked;
        }
    }

VB.NET View entire sample code

        For Each box As SftBox In boxes
            box.DropDownResizable = CheckResizable.Checked
        Next
    End Sub

    Private Sub CheckHotTrack_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckHotTrack.CheckedChanged
        If boxes Is Nothing Then Return
        For Each box As SftBox In boxes
            box.HotTrackSelection = CheckHotTrack.Checked
        Next
    End Sub

    Private Sub CheckDropOnFocus_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckDropOnFocus.CheckedChanged
        If boxes Is Nothing Then Return
        For Each box As SftBox In boxes
            box.DropOnFocus = CheckDropOnFocus.Checked

See Also SftBox Class | Classes | SftBox/NET 3.0