I am using the monthcalendar control, and when I highlight a range of dates, Ithen can't see the dates I've selected.
(See screenshot)
Does anyone know how I can get round this please ?
Printable View
I am using the monthcalendar control, and when I highlight a range of dates, Ithen can't see the dates I've selected.
(See screenshot)
Does anyone know how I can get round this please ?
Does it happen on a new project/form? If not then just delete the control from your form and add a new one, rename it to the old name, etc.
I've seen something similar with a DTP calendar. I chalked it up to a bug in the control. Have you checked MSDN to see if it's a known issue?
I have jmc - and can't find anything on there.
I've found a message on the forums which alludes to this problem being connected to visual styles - however I'm actually using the Skybound control from your sig so I wouldn't have thought this should be a problem.
What if you removed that control ref and used the standard one?
Further digging around has led me to believe that it is a bug, but unfortunately is not yet fixed in 2005.
Also, I've tried turning off the visual styles, and it then works fine.
It does the same RobDogg
Hmm, I would think its a bug in the Visual Styles and Skybound as on Vista it works just fine on the default MonthView control.
It certainly looks that way.
I don't suppose there's a way I can turn visual styles off for this form / control only is there ?
Hmm, you could either go to allot of work and catch the themeing and modify it or turn it all off completely for your app.
I don't think it has anything to do with Skybound. As I said, I've seen essentially the same effect in a DTP with no Skybound components in sight. It only happens under very specific circumstances, like changing years and months in a particular order or the like, but the visual effect is the same.
Maybe it was the MC and not the DTP because I couldn't get the DTP to break. I did get the same effect with the MC though and I had no Skybound components involved.
Note also that in .NET 2.0 there is very little need for the Skybound components. It's been a while since I looked at them but as far as I can recall the only thing they fix in .NET 2.0 is TabControls with Alignment properties not set to Top.
So jmc - are you suggesting I just use the built in 'Enable Visual Styles' line instead of referencing the Skybound equivalent ?
The reason I ask is that I am using the skybound component as I was getting problems with images in my listviews.
I am on .NET 2.0 though - should this not be the case ?
Like I said, I'm not aware of any visual style issues in .NET 2.0 other than the TabControl. There may be some that I'm not aware of though. Contrary to my own opinion, I don't know everything. ;)
No problem jmc.
Cheers for your help and advice tho - same goes to RobDog.
No prob.
The main reason to use skybound controls is to gain better Visual Stlyes under XP and using VS 2003. Sice you are on 2005 no real need.
I was hoping to find a better answer here. Oh well... I guess not.
I just finished a few pieces of an app and put it out for a client to test. On their machines (all XP), the MonthCalendar looks like the results in this thread. I wrote it on a Vista machine and didn't know about the problem.
Has anyone found a way around this?