HeaderPane
Main
Hide
Share Link
Print

DropOnFocus Property, SftBox Class

Defines whether the dropdown opens when the control receives the focus.

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

Syntax

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

Value

True to open the dropdown, False otherwise.

The default value is False.

Comments

Defines whether the dropdown opens when the control receives the focus.

Examples

C# View entire sample code

        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;
        }
    }

    // The object the lookup combo box is bound to.
    public class Order : INotifyPropertyChanged {
        private int countryId;
        public int CountryId {
            get { return countryId; }

VB.NET View entire sample code

        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
        Next
    End Sub

End Class

' The object the lookup combo box is bound to.
Public Class Order

See Also SftBox Class | Classes | SftBox/NET 3.0