Events in Windows Forms DateTimePickerAdv(Classic)
3 Sep 2020 / 1 minute to read
Following are the events of DateTimePickerAdv control.
- BeforePopup
- BindableValueChanged
- CheckBoxCheckedChanged
- OnPopup
- PopupClosed
- StretchDropDownImageChanged
- ValueChanged
PopupClosed Event
The PopupClosed event is handled when the popup is closed. Using the PopupCloseType member of the PopupClosedEventHandler, we can identify the type of closing.
private void dateTimePickerAdv1_PopupClosed(object sender, PopupClosedEventArgs e)
{
//Canceled - User cancels the updates if any.
//Deactivated - If the user moves the focus to some other window
//Done - If the user wants the changes to be applied to the control
Console.WriteLine(e.PopupCloseType.ToString());
}
Private Sub dateTimePickerAdv1_PopupClosed(ByVal sender As Object, ByVal e As PopupClosedEventArgs)
'Canceled - User cancels the updates if any.
'Deactivated - If the user moves the focus to some other window
'Done - If the user wants the changes to be applied to the control
Console.WriteLine(e.PopupCloseType.ToString())
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page