2
Answers

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

Photo of Tariq Mehmood

Tariq Mehmood

13y
2.9k
1
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 ?????????????

Answers (2)

0
Photo of Tariq Mehmood
NA 3 2.9k 13y
I am not using Asp.net .i am working on window form Aplication using C# .
0
Photo of Senthilkumar
NA 15.2k 2.4m 13y
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.