Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. large font and tabcontrol issue

large font and tabcontrol issue

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aviv Halperin
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • A Aviv Halperin

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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 the SystemEvents.UserPreferenceChanged event may help so that you can react accordingly, often times call Control.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]

      A 1 Reply Last reply
      0
      • H Heath Stewart

        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 the SystemEvents.UserPreferenceChanged event may help so that you can react accordingly, often times call Control.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]

        A Offline
        A Offline
        Aviv Halperin
        wrote on last edited by
        #3

        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

        H 1 Reply Last reply
        0
        • A Aviv Halperin

          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

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          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]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups