0

Hello Guys,
How would I have a button that when I click skips the calendar forward one month from the selected date?
I'm a bit confused as there is no skip option or anything.
Regards,
Luke

2
Contributors
2
Replies
13
Views
2 Years
Discussion Span
Last Post by LukeJWhitworth
0

Hi

Are you referring to a MonthCalendar control for Windows Forms?

If so, you have a SetDate method that you can use to specify the date that should be selected. If you combine this with the SelectionEnd property (this property specifies the last date selected - so if a range is selected this will be the end of that range) you can specify the date (plus one month) that should be set.

For example:

MonthCalendar1.SetDate(MonthCalendar1.SelectionEnd.AddMonths(1))

HTH

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.