I recently needed to use a MonthCalendar for a project, but it looks like this control is really limited and I can't do what I want with it. So if you could give me some tips, it would be really helpful.
So, what I want to do is to select multiple dates, and then when I click on a button, these dates are saved in an array and disabled on the calendar(or at least, their cell background become red).
What I already done is to allow multiple selection (MaxSelectionCount = 31) And I wrote some lines to get the selected days :
Dim nbrJours As Integer = MonthCalendar1.SelectionRange.End.Day - MonthCalendar1.SelectionRange.Start.Day
For jour As Integer = 0 To nbrJours
MsgBox(jour + MonthCalendar1.SelectionRange.Start.Day & "/" & MonthCalendar1.SelectionRange.Start.Month & "/" & MonthCalendar1.SelectionRange.Start.Year)
Next
Well, it's not really clean but it works, I just have to save these into an array after converting all the strings into dates I guess.
So, we suppose that all my dates are in an array, how can I disable the dates contained in the array in my MonthCalendar?
Thanks for reading, and sorry for my bad english, it's not my native language.