I have searched on Google and MSDN for a way to change the currently selected date of a month calendar through code instead of the user clicking but I can't find a way to do it, does anybody know how?
Printable View
I have searched on Google and MSDN for a way to change the currently selected date of a month calendar through code instead of the user clicking but I can't find a way to do it, does anybody know how?
How do you get the selection in code? That's how you set it too. Assign the date you want to the SelectionStart property and then (I'm not sure whether this is required or not) assign the same date to the SelectionEnd.
Oh yes I don't know why that didn't occur to me, I guess I was just thinking you could only read the selection that way. Thanks