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

Recommended Answers

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 …

Jump to Post

All 2 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.