MonthCalendar is a Windows Form UI Control which enables easy picking of dates from a visual monthly calendar display.
MonthCalendar
is a selectable calendar widget, that enables the user to select a date using a visual monthly calendar display. It is drawn by the operating system, so the look is native.
It gives the user a bunch of customization option, changing ForeColor
, Font
etc. Here's an example of MonthCalendar control in C# from this website.
using System;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
// Set the BoldedDates property to a DateTime array.
// ... Use array initializer syntax to add tomorrow and two days after.
monthCalendar1.BoldedDates = new DateTime[]
{
DateTime.Today.AddDays(1),
DateTime.Today.AddDays(2),
DateTime.Today.AddDays(4)
};
}
}
}