HeaderPane
Main
Hide
Share Link
Print

DropDownClosed Event, SftBox Class

Occurs when the dropdown has closed.

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

Syntax

public event DropDownClosedEventHandler DropDownClosed;
Public Event DropDownClosed As DropDownClosedEventHandler

Comments

Occurs when the dropdown has closed.

Examples

C# View entire sample code

            DumpValues("sftBox1.DropDownOpening" + (e.Cancel ? " (canceled)" : ""), e);
        }

        private void sftBox1_DropDownOpened(object sender, EventArgs e) {
            DumpValues("sftBox1.DropDownOpened", e);
        }

        private void sftBox1_DropDownClosed(object sender, DropDownClosedEventArgs e) {
            DumpValues("sftBox1.DropDownClosed", e);
        }

        private void sftBox1_DropDownResized(object sender, EventArgs e) {
            DumpValues("sftBox1.DropDownResized (" + sftBox1.DropDownSize.Width + " x " + sftBox1.DropDownSize.Height + ")", e);
        }

        private void sftBox1_Enter(object sender, EventArgs e) {

VB.NET View entire sample code

        e.Cancel = CheckBlock.Checked
        DumpValues("SftBox1.DropDownOpening" + If(e.Cancel, " (canceled)", ""), e)
    End Sub

    Private Sub SftBox1_DropDownOpened(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.DropDownOpened
        DumpValues("SftBox1.DropDownOpened", e)
    End Sub

    Private Sub SftBox1_DropDownClosed(ByVal sender As Object, ByVal e As DropDownClosedEventArgs) Handles SftBox1.DropDownClosed
        DumpValues("SftBox1.DropDownClosed", e)
    End Sub

    Private Sub SftBox1_DropDownResized(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.DropDownResized
        DumpValues("SftBox1.DropDownResized (" & SftBox1.DropDownSize.Width & " x " & SftBox1.DropDownSize.Height & ")", e)
    End Sub

See Also SftBox Class | Classes | SftBox/NET 3.0