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?

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.

C#

 

VB

 

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.

C#

 

VB

 

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

Article ID: Published Date: Last Revised Date: Platform: Control:
2831 11/21/2014 08/11/2015 WinForms DateTimePickerAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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