large font and tabcontrol issue
-
Hi, I have a tabcontrol with 4 tabpages. Each tabpage contains a richtextbox. I do not have anyproblem running my application and viewing all the tabs when the system font is set to small font. When the font is set to large font, all the tab pages become gray and the richtextboxes are not shown at all! Does anyone know of a solution to this problem? (setting the AutoSize property of the RichTextBoxes to true does not help ) Thanks. avivhal
-
Hi, I have a tabcontrol with 4 tabpages. Each tabpage contains a richtextbox. I do not have anyproblem running my application and viewing all the tabs when the system font is set to small font. When the font is set to large font, all the tab pages become gray and the richtextboxes are not shown at all! Does anyone know of a solution to this problem? (setting the AutoSize property of the RichTextBoxes to true does not help ) Thanks. avivhal
How exactly do you mean? The system fonts are set to large while your application is running and the
TabControl
shown, or even when the fonts are set to large before your application is running? The latter should not cause problems, but the former situation can. Handling theSystemEvents.UserPreferenceChanged
event may help so that you can react accordingly, often times callControl.Update
on controls that having trouble updating their drawing surface themselves. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog] -
How exactly do you mean? The system fonts are set to large while your application is running and the
TabControl
shown, or even when the fonts are set to large before your application is running? The latter should not cause problems, but the former situation can. Handling theSystemEvents.UserPreferenceChanged
event may help so that you can react accordingly, often times callControl.Update
on controls that having trouble updating their drawing surface themselves. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]The system font is set to large before the application is running. This causes the tabs not to appear. If the font is set to small the problem is gone and all tabs are shown. I have actually only seen this behavior on windows 2000 systems. On XP the problem does not exist. Does this make any difference? Could it be a .NET CLR issue? Thanks. avivhal
-
The system font is set to large before the application is running. This causes the tabs not to appear. If the font is set to small the problem is gone and all tabs are shown. I have actually only seen this behavior on windows 2000 systems. On XP the problem does not exist. Does this make any difference? Could it be a .NET CLR issue? Thanks. avivhal
No, it would not be a CLR issue. For one, the CLR is the same - for the most part - for all supported platforms. There are small differences, like that the CLR on 9x will thunk Unicode text, but understand that most of the Windows Forms controls are just encapsulating the Windows Common Controls. They are not - except for a few like
DataGrid
and many of the upcoming new controls in .NET 2.0 - implemented "natively" (i.e., not as pure .NET classes). This is to provide a consistent UI with the rest of Windows. It could be a problem with the underlying Tab-Control common control. Reproduce the steps using a native application that uses the Tab-Control and see if you see the same problem. Also make sure your system is up-to-date by visiting Windows Update. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]