We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to prevent the Calendar popup from hiding upon mouse selection of the "Today" or "None" button?

Platform: WinForms |
Control: DateTimePickerAdv |
Published Date: November 21, 2014 |
Last Revised Date: August 11, 2015

In the DateTimerPickerAdv, the MonthCalender, popup is hidden upon mouse button selection of the None and Today buttons. The popup visibility can be maintained by the following steps:

  1. Handling the BeforeCloseUp event.
  2. Using the DisplayCalendar function.


By using the BeforeCloseUp event handler:

In the DataTimePickerAdv, the CalenderPopup is hidden on clicking Today and None buttons. It is possible to maintain the CalenderPopup visibility in this case by handling the BeforeCloseUp event and None and Today buttons’ MouseDown event.

The following code example demonstrates the same.





By using the DisplayCalendar method:

The purpose of the DisplayCalendar function is to display the MonthCalendar popup programmatically. So, the Popup can be displayed by invoking the DisplayCalendar function in its None and Today buttons click events.

The following code example demonstrates the same.





Figure 1: The popup window does not hide, when clicking on the Today or None button

Sample Links:

C#: DateTimePickerAdv_CalendarPopup_C#

VB: DateTimePickerAdv_CalendarPopup_VB

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon