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