Skip to content

How to allow multiple Date Select and changes color in Calander using C#

Tariq Mehmood

Asked Apr 5, 2012, 2:31 AM EDT2 answers
Share
LinkedInX
I have monthCalendarAdv1 monthly Calendar ..i want make a program in C# window form on this Calendar when user will click on particular date , the color of this date need to change . .and when user will click another date then old date keep highlight with other selected ..i have make a program but its only changes the color of only one date

if (checkBox1.Checked)
  {

  monthCalendarAdv1.Colors.Selection.BackColor = Color.Red;
  string a = monthCalendarAdv1.SelectedDate.ToString();
  MessageBox.Show(a);


  }

Any body can help me ?????????????

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Senthilkumar
    0
    Hi,

    I do not think the asp.net control has the functionality of remembering all the selected history. It can highlight the current date or selected date. 

    If you such requirement then you can download any javascript calendar and customize it according to your requirement.
    0
  • 0
    I am not using Asp.net .i am working on window form Aplication using C# .
    0