Use the C1Calendar.BoldedDates property to add bolded dates to the C1Calendar control like the following:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
' add some bold days
cal1.BoldedDates.Add(DateTime.Today.AddDays(2))
cal1.BoldedDates.Add(DateTime.Today.AddDays(12))
cal1.BoldedDates.Add(DateTime.Today.AddDays(22))
cal1.BoldedDates.Add(DateTime.Today.AddDays(-2))
cal1.BoldedDates.Add(DateTime.Today.AddDays(-12))
cal1.BoldedDates.Add(DateTime.Today.AddDays(-22))
|
To write the code in C#:
C# |
Copy Code
|
---|---|
// add some bold days
cal1.BoldedDates.Add(DateTime.Today.AddDays(2));
cal1.BoldedDates.Add(DateTime.Today.AddDays(12));
cal1.BoldedDates.Add(DateTime.Today.AddDays(22));
cal1.BoldedDates.Add(DateTime.Today.AddDays(-2));
cal1.BoldedDates.Add(DateTime.Today.AddDays(-12));
cal1.BoldedDates.Add(DateTime.Today.AddDays(-22));
|