Control apperance

  • Thread starter Thread starter John J. Hughes II
  • Start date Start date
J

John J. Hughes II

Why are the buttons, control tab pages, and a few other things different on
the GUI interface then when my application is run?

For example in the GUI the button have slightly rounded corner and are light
gray/white but when the program runs they are dark gray and square. I don't
mind either but think the preview and the running look should be the same.

Regards,
John
 
hello,

r u using vstudio 2005?? because in v.s 2003 the buttons for example are
square in both...and if you want "xp style", that is, rounded corner and
etc...u need a file called a "manifest" that goes within the application
folder, so that then u run the app the user controls gets the "XP style".

dan.

why? i do not know, but i think you are looking
 
Yes I am using 2005 and was mostly just trying to get them to look the same.
Don't see where the manifest file will help here.

Regards,
John
 
Thank I found it, since this was an existing application the GUI did not
build the initial startup and some thing were missing.

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

Regards,
John
 
Back
Top