how to add holiday in windows from application in c#
I want add holiday in month calendar control in windows from application in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vasu GadhiyaPosted Jul 12, 2014, 2:26 AM
monthCalendar1.BoldedDates = new DateTime[]
{
DateTime.Today.AddDays(1),
DateTime.Today.AddDays(2),
DateTime.Today.AddDays(4)
};
or also you can
DateTime[] dateTimes = new DateTime[]
{
new DateTime(2014, 07, 12),
new DateTime(2014, 07, 11),
};
monthCalendar1.BoldedDates = dateTimes;
You can retrieve your holiday list from database or XML File.
Thanks