Dear Oliver Nguyen
Thank you very much, I'm not the coding. Can setting this via Windows UI?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to set the calendar display to prevent overlapping with the month display? The problem is that when the current date is near the end of the month, the month display changes to the new month, which may cause confusion.
Dear Oliver Nguyen
Thank you very much, I'm not the coding. Can setting this via Windows UI?
Hi Phornwiboon Sripa,
Force Calendar to Show Current Month: If you’re coding your own calendar (e.g., in C#, JavaScript, WPF, WinUI, etc.), set the calendar’s display month explicitly based on DateTime.Today.
Example:
calendar.DisplayDate = DateTime.Today;
calendar.DisplayDateStart = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
calendar.DisplayDateEnd = calendar.DisplayDateStart.AddMonths(1).AddDays(-1);
==> This forces the control to always show the current month grid.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.