Visual style and check boxes
-
Ive been fiddling around with c# for a short ammount of time, but im creating a simple application that i need some check boxes to be checked by default, but as soon as i check them in visual studio and compile all the visual styles on all my buttons and other checkboxes dissapear, and i cant figure out why :( any help would be appreciated
-
Ive been fiddling around with c# for a short ammount of time, but im creating a simple application that i need some check boxes to be checked by default, but as soon as i check them in visual studio and compile all the visual styles on all my buttons and other checkboxes dissapear, and i cant figure out why :( any help would be appreciated
Can you give a *short* code/procedure example so that we might try to reproduce?
α.γεεκ
Fortune passes everywhere.
Duke Leto Atreides -
Can you give a *short* code/procedure example so that we might try to reproduce?
α.γεεκ
Fortune passes everywhere.
Duke Leto AtreidesCreate a new c# windows application in main add Application.EnableVisualStyles(); before Application.Run(new Form1()); Then add a checkbox to the form, and set FlatStyle to "System" compile the program and the checkbox will have windows xp themes, if you set the checkbox to be checked by default, then compile the xp theme is removed... Do other people get the same problem? The way i have got around it is to set the checkbox defaults when Form1 loads (Load event), but i would be interested in knowing what causes this problem. Cheers