MonthCalendar

  • Thread starter Thread starter Smurfman-MSDN
  • Start date Start date
S

Smurfman-MSDN

Using Visual Basic 2008 and the MonthCalendar Control

Is there a way to make the calendar advance a specified number of months at
a time.

For example I want to place one calendar on a form, and when the user
advances the calendar, it advances 3 months instead of one.

Thus I could effectively display Jan-->Apr-->Jul-->Oct thus limited the
user's selection of dates to dates with in those months only.

Another example, I would like to make the calendar advance 12 months at a
time, so I could display one monthcalendar on the form, and the user would
just advance 1 year at a time Jan 2009 --> Jan 2010 --> Jan 2011 and so forth.

How can I accomplish this?

Thanks
J
 
Hi Smurfman,

Thank you for using Microsoft Managed Newsgroup Service, I'm Zhi-Xin Ye,
it's my pleasure to work with you on this issue.

To advance a specified number of months at a time, you can specify a value
for the MonthCalendar.ScrollChange property . For example:

//Advance by 3 months at a time.
this.monthCalendar1.ScrollChange = 3;

//Advance by 1 year at a time.
this.monthCalendar1.ScrollChange = 12;

Please try my suggestion and let me know whether it makes sense to you.

Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide

to you. Please feel free to let my manager know what you think of the level
of service provided. You can send feedback directly to my

manager at: (e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Okay, I will try this today.

So suppose I want a MonthCalendar that is 1x3 but shows Jan 2009, Jan 2010,
and Jan 2011, and advanceing the calendar using the buttons would shift the
dates 12 months at a time - so that either the next set of 3 would be Jan
2012, Jan 2013, and Jan 2014 OR so that each woudl move to the left if
advancing, meaning that Jan 2009 would become Jan 2010, and Jan 2010 would
become Jan 2011, and Jan 2012 would become 2013.

Can I accomplish this?

Thanks
J
 
Hi smurfman,

As far as I know, the MonthCalendar control does not support this kind of
feature, a MonthCalendar with 1x3 dimension can only display three
continuous months, for example, Jan. 2009, Feb. 2009 and Mar. 2009. You
can use three MonthCalendar controls instead.

Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide

to you. Please feel free to let my manager know what you think of the level
of service provided. You can send feedback directly to my

manager at: (e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi smurfman,

How about this issue now? If you still need any help or have any concern,
please feel free to feedback, thanks.

Have a nice day!

Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide

to you. Please feel free to let my manager know what you think of the level
of service provided. You can send feedback directly to my

manager at: (e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top