monthCalendar.BoldedDates

  • Thread starter Thread starter Gidi
  • Start date Start date
G

Gidi

Hi,

Is it possible to get a range of dates and to bold it in my monthCalenda?

what i mean is, that if for example, i will get the date range 13\01\2008 -
15\01\2008, i want to bold the dates: 13,14,15.

Thanks,
Gidi.
 
calendar.BoldedDates

Example:

Application.EnableVisualStyles();
using(Form f = new Form())
using (MonthCalendar mc = new MonthCalendar())
{
f.Controls.Add(mc);
DateTime start = new DateTime(2008, 01, 13);
DateTime[] dates = { start, start.AddDays(1),
start.AddDays(2) };
mc.BoldedDates = dates;
Application.Run(f);
}

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top