c# - WinForms button default style changed? -
i'm writing small winforms project. i've written "main" formbox (self made controls eg) derive other forms. i've problem default button design / style changed old "flat" design , not new "3d-style" (since vista).
that's have
that's should
i never changed design manually realy don't know why has happend. i've searched solution in google , here belive i'm using wrong words search.
does know how change design new 3d-style or how change design globally ?
best regards alex
you're missing call application.enablevisualstyles
in main
method, should this:
[stathread] public static void main() { application.enablevisualstyles(); application.setcompatibletextrenderingdefault(false); using(mainform form = new mainform()) { application.run(form); } }
Comments
Post a Comment