HeaderPane
Main
Hide
Share Link
Print

DropDownClosedEventArgs Class

Provides data for the SftBox.DropDownClosed event.

Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Inheritance

Syntax

public class DropDownClosedEventArgs : System.EventArgs;
Public Class DropDownClosedEventArgs
    Inherits System.EventArgs

Constructors

PublicDropDownClosedEventArgsInitializes a new instance of the DropDownClosedEventArgs class.

Fields

PublicAcceptedReturns whether the user chose an item (True) or closed the dropdown without choosing one (False).
PublicStaticInherited from System.EventArgsEmptyProvides a value to use with events that do not have event data.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Examples

C# View entire sample code

            e.Cancel = checkBlock.Checked;
            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);
        }

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 Classes | SftBox/NET 3.0