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. Windows Forms
  4. How to define a visual scheme for a GUI *including* text?

How to define a visual scheme for a GUI *including* text?

Scheduled Pinned Locked Moved Windows Forms
csharpwpfwinformstutorialquestion
3 Posts 2 Posters 11 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.
  • K Offline
    K Offline
    KeironN
    wrote on last edited by
    #1

    Hello, I'm developing a GUI with Windows Forms and would like to be able to change the 'look and feel' of the whole GUI from one place - essentially apply a Visual Style to it. But I want to be able to change the size and font of all the text in the app when I do so: including both Labels and the text displayed in buttons, listboxes etc. I realise that Labels (and a couple of other components) ignore Visual Styles. Is there a way I can force them to obey a visual style, or some other way to define and apply a consistent visual scheme to the GUI, including the text? (I'm working in C# .NET 2.0) Thanks very much, Keiron

    P 1 Reply Last reply
    0
    • K KeironN

      Hello, I'm developing a GUI with Windows Forms and would like to be able to change the 'look and feel' of the whole GUI from one place - essentially apply a Visual Style to it. But I want to be able to change the size and font of all the text in the app when I do so: including both Labels and the text displayed in buttons, listboxes etc. I realise that Labels (and a couple of other components) ignore Visual Styles. Is there a way I can force them to obey a visual style, or some other way to define and apply a consistent visual scheme to the GUI, including the text? (I'm working in C# .NET 2.0) Thanks very much, Keiron

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Upgrade to WPF and .NET 3. Seriously, this is relatively trivial in WPF (there are a couple of little gotchas). Failing that, there's always this http://www.codeproject.com/cs/miscctrl/StylesSheetManager.asp[^]. I've never tried it, but it looks like it could be pretty decent.

      Deja View - the feeling that you've seen this post before.

      K 1 Reply Last reply
      0
      • P Pete OHanlon

        Upgrade to WPF and .NET 3. Seriously, this is relatively trivial in WPF (there are a couple of little gotchas). Failing that, there's always this http://www.codeproject.com/cs/miscctrl/StylesSheetManager.asp[^]. I've never tried it, but it looks like it could be pretty decent.

        Deja View - the feeling that you've seen this post before.

        K Offline
        K Offline
        KeironN
        wrote on last edited by
        #3

        Thanks very much Pete. Unfortunately upgrading to .NET 3.0 isn't really an option (I'm writing plugins for a .NET 2.0 app) but I'll give StylesSheetManager a go. Cheers! Keiron

        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