winforms - C# Windows forms controls lost border? -


this question has answer here:

while adding controls form, of elements lost border , grey inner gloss shadow best example, checkboxes , radio buttons have.

those this: enter image description here

instead of this: enter image description here

i couldn't find solution yet. properties should change desired styling? thank you!

probably have removed application.enablevisualstyles(); main method.

    [stathread]     static void main()     {         application.enablevisualstyles(); // did remove line?         application.setcompatibletextrenderingdefault(false);         application.run(new form1());     }