MonthCalendar control selection range with EnableVisualStyles?

Posted by warren_s on Stack Overflow See other posts from Stack Overflow or by warren_s
Published on 2008-10-16T03:07:00Z Indexed on 2010/06/17 22:23 UTC
Read the original article Hit count: 173

Filed under:
|
|
|

I'm using the MonthCalendar control and want to programmatically select a date range. When I do so the control doesn't paint properly if Application.EnableVisualStyles() has been called. This is a known issue according to MSDN.

Using the MonthCalendar with visual styles enabled will cause a selection range for the MonthCalendar control to not paint correctly (from: http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar.aspx)

Is there really no fix for this other than not calling EnableVisualStyles? This seems to make that particular control entirely useless for a range of applications and a rather glaring oversight from my perspective.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET