Apr 20th, 2007, 03:57 AM
#1
Thread Starter
Hyperactive Member
[2005] MonthCalendar Screen Corruption
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 ?
Attached Images
Apr 20th, 2007, 04:10 AM
#2
Re: [2005] MonthCalendar Screen Corruption
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.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Apr 20th, 2007, 04:24 AM
#3
Re: [2005] MonthCalendar Screen Corruption
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?
Apr 20th, 2007, 04:31 AM
#4
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
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.
Apr 20th, 2007, 04:33 AM
#5
Re: [2005] MonthCalendar Screen Corruption
What if you removed that control ref and used the standard one?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Apr 20th, 2007, 04:37 AM
#6
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
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.
Apr 20th, 2007, 04:38 AM
#7
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
Apr 20th, 2007, 04:46 AM
#8
Re: [2005] MonthCalendar Screen Corruption
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.
Attached Images
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Apr 20th, 2007, 04:51 AM
#9
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
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 ?
Apr 20th, 2007, 04:53 AM
#10
Re: [2005] MonthCalendar Screen Corruption
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.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Apr 20th, 2007, 05:09 AM
#11
Re: [2005] MonthCalendar Screen Corruption
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.
Apr 20th, 2007, 05:18 AM
#12
Re: [2005] MonthCalendar Screen Corruption
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.
Apr 20th, 2007, 05:28 AM
#13
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
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 ?
Apr 20th, 2007, 06:05 AM
#14
Re: [2005] MonthCalendar Screen Corruption
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.
Apr 20th, 2007, 06:27 AM
#15
Thread Starter
Hyperactive Member
Re: [2005] MonthCalendar Screen Corruption
No problem jmc.
Cheers for your help and advice tho - same goes to RobDog.
Apr 20th, 2007, 11:17 AM
#16
Re: [2005] MonthCalendar Screen Corruption
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.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Sep 27th, 2007, 04:06 PM
#17
Fanatic Member
Re: [2005] MonthCalendar Screen Corruption
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?
My.Settings.Signature = String.Empty
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width