Month Calendar Conrol in C#

Download
Download is available until [expire_date]
  • Version
  • Download 67
  • File Size 43.77 KB
  • File Count 1
  • Create Date March 8, 2016
  • Last Updated March 8, 2016

Month Calendar Conrol in C#

Month Calendar Conrol in C#

This is a simple program in c# about month calendar control. The Windows Forms MonthCalendar control presents an intuitive graphical interface for users to view and set date information.

The program will display the date, year, date of the week, day of the month when the user selects a specific date in the month calendar control.

Source code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {
            textBox1.Text = monthCalendar1.SelectionRange.Start.ToShortDateString();
            textBox2.Text = monthCalendar1.SelectionStart.Year.ToString();
            textBox3.Text = monthCalendar1.SelectionStart.DayOfWeek.ToString();
            textBox4.Text = monthCalendar1.SelectionStart.Day.ToString();
          
        }

     
    }
}
, , , , ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.