- Joined
- Sep 14, 2011
- Messages
- 3
- Reaction score
- 0
Gregarious greetings,
I work as a .NET Developer. I work on a Windows 7 PC that has Virtual PC/Windows XP mode.
My C# code in the Visual Studio 2005 Win app on the Virtual PC/Windows XP mode successfully bolds dates on a System.Windows.Forms.MonthCalendar control based on certain logic that pertains to the data in the SQL Server 2008 table. On the Virtual PC/Windows XP mode, when today's date (the current date 13-SEP-2011) should be bolded and I run the app and open the MonthlyCalendar control, the current day 13 (for 13-SEP-2011) is shaded dark blue with the 13 in white font and when I click to a different date the dark blue shading disappears and the 13 becomes bolded in black like the other bolded dates for the month of September 2011. All is fine in the Windows XP mode.
When I install this Windows application on the Windows 7, I run the app and open the MonthCalendar control. The 13 (for today, 13-SEP-2011) has a light blue shading and the 13 has blue font that does not look bolded like the other black bolded dates in this month. When I click to another date in this month, the 13 is not bolded like the other black bolded dates in this month and still has the blue font and shading. So on Windows 7, the current date is not bolded like when this application runs on the Virtual PC/Windows XP mode.
I do not care at all about the Win 7/XP differences in the shading of the current date and the differences of the color of the rectangle around the current date.
I do care though that in Windows 7 the current date is not bolded when it should be.
I can provide the C# code if desired but it would seem that my C# code is not the problem since in Windows XP mode the current date is bolded when it should be and clearly appears as bold font whereas in Windows 7 the current date is not bolded. The Windows application logs any errors and the log file shows no errors during the process of programmatically bolding certain dates on the MonthCalendar control. Please let me know if you want me to provide the C# code. There's C# code in our Class file from which I am inheriting and that uses the System.Windows.Forms.MonthCalendar control as well as C# code in the file that retrieves data from the SQL Server 2008 table to determine if a date should be bolded and then programmatically bolds the date.
Yesterday, the 12th of this month, on Windows 7 the 12 on the MonthCalendar did not appear bolded while today it does. So it seems that this problem on Windows 7 is related to the current date.
I changed on Windows 7 the current Areo Win 7 theme to a couple of Basic themes (Win 7 Basic and Win Classic), but this did not help the problem. Changing the theme of course changed the way the MonthCalendar appears and the colors, but it did not cause the current date to be bolded in my Windows application on Windows 7.
This MonthCalendar control has a property that allows me to remove the circle/rectangle around the current date, but removing that circle or rectangle around the current date does not help bold the current date on Windows 7.
I have been researching on the Internet to see if any other Developer/Programmer has encountered this problem but have not found anybody who has. Since it would seem that my C# code is okay since it works on the Virtual PC/Windows XP mode, I thought that I would try to ask on a Windows 7 forum in case maybe someone here has heard of such a problem.
I extend to you my appreciation in advance for considering my post. Please let me know if I can provide further information.
Cordially,
Hviezdoslav 13-SEP-2011
I work as a .NET Developer. I work on a Windows 7 PC that has Virtual PC/Windows XP mode.
My C# code in the Visual Studio 2005 Win app on the Virtual PC/Windows XP mode successfully bolds dates on a System.Windows.Forms.MonthCalendar control based on certain logic that pertains to the data in the SQL Server 2008 table. On the Virtual PC/Windows XP mode, when today's date (the current date 13-SEP-2011) should be bolded and I run the app and open the MonthlyCalendar control, the current day 13 (for 13-SEP-2011) is shaded dark blue with the 13 in white font and when I click to a different date the dark blue shading disappears and the 13 becomes bolded in black like the other bolded dates for the month of September 2011. All is fine in the Windows XP mode.
When I install this Windows application on the Windows 7, I run the app and open the MonthCalendar control. The 13 (for today, 13-SEP-2011) has a light blue shading and the 13 has blue font that does not look bolded like the other black bolded dates in this month. When I click to another date in this month, the 13 is not bolded like the other black bolded dates in this month and still has the blue font and shading. So on Windows 7, the current date is not bolded like when this application runs on the Virtual PC/Windows XP mode.
I do not care at all about the Win 7/XP differences in the shading of the current date and the differences of the color of the rectangle around the current date.
I do care though that in Windows 7 the current date is not bolded when it should be.
I can provide the C# code if desired but it would seem that my C# code is not the problem since in Windows XP mode the current date is bolded when it should be and clearly appears as bold font whereas in Windows 7 the current date is not bolded. The Windows application logs any errors and the log file shows no errors during the process of programmatically bolding certain dates on the MonthCalendar control. Please let me know if you want me to provide the C# code. There's C# code in our Class file from which I am inheriting and that uses the System.Windows.Forms.MonthCalendar control as well as C# code in the file that retrieves data from the SQL Server 2008 table to determine if a date should be bolded and then programmatically bolds the date.
Yesterday, the 12th of this month, on Windows 7 the 12 on the MonthCalendar did not appear bolded while today it does. So it seems that this problem on Windows 7 is related to the current date.
I changed on Windows 7 the current Areo Win 7 theme to a couple of Basic themes (Win 7 Basic and Win Classic), but this did not help the problem. Changing the theme of course changed the way the MonthCalendar appears and the colors, but it did not cause the current date to be bolded in my Windows application on Windows 7.
This MonthCalendar control has a property that allows me to remove the circle/rectangle around the current date, but removing that circle or rectangle around the current date does not help bold the current date on Windows 7.
I have been researching on the Internet to see if any other Developer/Programmer has encountered this problem but have not found anybody who has. Since it would seem that my C# code is okay since it works on the Virtual PC/Windows XP mode, I thought that I would try to ask on a Windows 7 forum in case maybe someone here has heard of such a problem.
I extend to you my appreciation in advance for considering my post. Please let me know if I can provide further information.
Cordially,
Hviezdoslav 13-SEP-2011