using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsMonthCalendar { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void label2_Click(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { textBox1.Text = monthCalendar1.TodayDate.ToString(); } private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e) { textBox2.Text = monthCalendar1.SelectionStart.ToString(); textBox3.Text = monthCalendar1.SelectionEnd.ToString(); } } }