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. C# GUI display option

C# GUI display option

Scheduled Pinned Locked Moved C#
csharpvisual-studio
5 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.
  • A Offline
    A Offline
    atramard
    wrote on last edited by
    #1

    :confused: Hi, I am getting mad. I am building my project with VS.net 2005. When i build the solution all the button, group box... are display in a "Square" look instead of the normal "Rounded". Is there an option some where that would allow me to do that. thanks

    P 1 Reply Last reply
    0
    • A atramard

      :confused: Hi, I am getting mad. I am building my project with VS.net 2005. When i build the solution all the button, group box... are display in a "Square" look instead of the normal "Rounded". Is there an option some where that would allow me to do that. thanks

      P Offline
      P Offline
      Pualee
      wrote on last edited by
      #2

      I'm not sure what your talking about, but what I am thinking about as 'square' vs 'rounded' may be the difference in your OS settings on XP to look either like WinXP or like Win2K. These settings are set per user and not by your compiler. If I'm way off can you describe more?

      A 1 Reply Last reply
      0
      • P Pualee

        I'm not sure what your talking about, but what I am thinking about as 'square' vs 'rounded' may be the difference in your OS settings on XP to look either like WinXP or like Win2K. These settings are set per user and not by your compiler. If I'm way off can you describe more?

        A Offline
        A Offline
        atramard
        wrote on last edited by
        #3

        Yes This is what i mean by square => win2k and Rounded for XP. But it's seems that you must be able to build an app that will look like an 2K on a XP PC. My pc is in XP and all my app build look like a XP app but, that one when i build it it, look like a 2K one. There must be something on the project that make it build it like that...any idear

        D 1 Reply Last reply
        0
        • A atramard

          Yes This is what i mean by square => win2k and Rounded for XP. But it's seems that you must be able to build an app that will look like an 2K on a XP PC. My pc is in XP and all my app build look like a XP app but, that one when i build it it, look like a 2K one. There must be something on the project that make it build it like that...any idear

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          In your Program.cs (or whatever your startup is), you have to enable visual styles. Something like this:

          static class Program
          {
              \[STAThread\]
              static void Main()
              {
                  Application.EnableVisualStyles();
                  Application.SetCompatibleTextRenderingDefault(false);
                  Application.Run(new Form1());
              }
          }
          

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          A 1 Reply Last reply
          0
          • D Dave Kreskowiak

            In your Program.cs (or whatever your startup is), you have to enable visual styles. Something like this:

            static class Program
            {
                \[STAThread\]
                static void Main()
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new Form1());
                }
            }
            

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            A Offline
            A Offline
            atramard
            wrote on last edited by
            #5

            Thanks, that did the job.

            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