as subject line...
during runtime all buttons on all form pages are appearing square, rather than smooth and rounded (like they appear in the desgin view)
Any idea why this is?
im using Visual Studio 2005 ( i did originally use the auto convert wizard to convert the starting code from a 2003 visual studio to 2005)
thanks
Buttons are appearing square (in runtime) rather than smooth and rounded (like desgin view suggest)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Sam112 pointsPosted Jul 31, 2007, 1:08 PM EDT
is the function Application.EnableVisualStyles() called
if i comment this out i get old-style square buttons at run-time.
Also you could check the FlatStyle property of the buttons.
Hope this helps,
Sam.
julz barrab26 pointsPosted Aug 1, 2007, 1:30 AM EDT
that worked, adding :-
Application.EnableVisualStyles();
before
Application.Run(new Welcome());