Occurs before the dropdown opens; setting Cancel keeps it closed.
Class: SftDate
Namespace: Softelvdm.SftDateNET
Assembly: Softelvdm.SftDateNET
public event CancelEventHandler DropDownOpening;
Public Event DropDownOpening As CancelEventHandlerOccurs before the dropdown opens; setting Cancel keeps it closed.
DumpValues("sftDate1.ValueValidating", e);
}
private void sftDate1_ValueChanged(object sender, EventArgs e) {
DumpValues("sftDate1.ValueChanged (" + sftDate1.Text + ")", e);
}
private void sftDate1_DropDownOpening(object sender, CancelEventArgs e) {
DumpValues("sftDate1.DropDownOpening", e);
// e.Cancel = true; would keep the dropdown closed
}
private void sftDate1_DropDownOpened(object sender, EventArgs e) {
DumpValues("sftDate1.DropDownOpened", e);
}
DumpValues("SftDate1.ValueValidating", e)
End If
End Sub
Private Sub SftDate1_ValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftDate1.ValueChanged
DumpValues("SftDate1.ValueChanged (" + SftDate1.Text + ")", e)
End Sub
Private Sub SftDate1_DropDownOpening(ByVal sender As Object, ByVal e As CancelEventArgs) Handles SftDate1.DropDownOpening
DumpValues("SftDate1.DropDownOpening", e)
' e.Cancel = True would keep the dropdown closed
End Sub
Private Sub SftDate1_DropDownOpened(ByVal sender As Object, ByVal e As EventArgs) Handles SftDate1.DropDownOpened
DumpValues("SftDate1.DropDownOpened", e)See Also SftDate Class | Classes | SftDate/NET 3.0