HeaderPane
Main
Hide
Share Link
Print

DropDownResizable Property, SftBox Class

Defines whether the user can resize the dropdown.

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

Syntax

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

Value

True to show a size grip in the dropdown's corner, False otherwise.

The default value is False.

Comments

Defines whether the user can resize the dropdown.

The size the user chooses is used each time the dropdown opens (SftBox.DropDownSize property).

Examples

C# View entire sample code

        }

        private void checkHeaders_CheckedChanged(object sender, EventArgs e) {
            sftBox1.List.Headers.Visible = checkHeaders.Checked;
        }

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

VB.NET View entire sample code

    Private Sub CheckHeaders_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckHeaders.CheckedChanged
        SftBox1.List.Headers.Visible = CheckHeaders.Checked
    End Sub

    ' InitializeComponent sets the check boxes before the list of combo boxes exists
    Private Sub CheckResizable_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckResizable.CheckedChanged
        If boxes Is Nothing Then Return
        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

See Also SftBox Class | Classes | SftBox/NET 3.0