We help IT Professionals succeed at work.

Issues with changing year on windows form calendar control

johnnyg123
johnnyg123 asked
on
391 Views
Last Modified: 2012-05-10
I have a windows form in a vb.net project that has a calendar control on it.

When I try to change the year by using the spin button control the months are sometimes displayed with only the dates that are equal to or less than the date selected.

For example, I bring up the form and September 2010 is displayed with the current date of the 8th selected. I go to the spin button and change year to 2009. The control now displays only the 30, 31, 1, 2,3,4,5,6,7 and 8 (the 8 is cut off).  If I click on the control a few times all the days of the month are displayed.  

I was really hoping to scroll through the years with all dates displayed.

Is there a way to do this?

Comment
Watch Question

Author

Commented:
I have attached a word doc with screen prints
change-year-issue.doc
John (Yiannis) ToutountzoglouInstructor Multiengine Pilot

Commented:
What kind of calendar control  your are using....
Datetime Picker does not do that...
John (Yiannis) ToutountzoglouInstructor Multiengine Pilot

Commented:
Also there is amonth Calendar..in toolbox
John (Yiannis) ToutountzoglouInstructor Multiengine Pilot

Commented:
What VS Version are u using?Is it a custom Control?

Author

Commented:
the standard monthcalendar control in vs 2005
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
John (Yiannis) ToutountzoglouInstructor Multiengine Pilot

Commented:
1.Check Your SelectionRange in calendar Properties...
2.try to change the TitleForeColor, to Red just to see what happens...

Author

Commented:
Gotta love Microsoft
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.