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

enter image description here

that's should

enter image description here

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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -