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. Change Font Size through out the application

Change Font Size through out the application

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 3 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.
  • C Offline
    C Offline
    Chris 3
    wrote on last edited by
    #1

    Hi guys, We have a C# Windows application, now user ask if we can enlarge the font size through the whole application. I wonder how should we accomplish it? And one more, if we do so, do we end up massing around the layout? Thanks,

    J L 2 Replies Last reply
    0
    • C Chris 3

      Hi guys, We have a C# Windows application, now user ask if we can enlarge the font size through the whole application. I wonder how should we accomplish it? And one more, if we do so, do we end up massing around the layout? Thanks,

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      You can recursively loop through the .Controls of the form (and all controls that are children of other controls) and set the .Font property of each. Should be easy. This won't mess up the layout of the application (i.e. your buttons won't move) however, if the text is large enough some of it obviously won't be visible. #include "witty_sig.h"

      1 Reply Last reply
      0
      • C Chris 3

        Hi guys, We have a C# Windows application, now user ask if we can enlarge the font size through the whole application. I wonder how should we accomplish it? And one more, if we do so, do we end up massing around the layout? Thanks,

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Controls normally 'inherit' the font of the containing control/form. top secret xacc-ide 0.0.1

        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