How to add holiday in windows from application in c#
I want add holiday in month calendar control in windows from application in c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vasu GadhiyaRank #7,540 · 239 reputationPosted Jul 11, 2014, 10:26 PM EDT
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