0

While adding controls to form, suddenly all of the elements lost border and the grey inner gloss shadow which as best example, checkboxes and radio buttons have.

Those now look like this: enter image description here

Instead of like this: enter image description here

I couldn't find a solution yet. What properties should i change to get the desired styling? Thank you!

user2818626
  • 43
  • 1
  • 2
  • 8

1 Answers1

3

Probably you have removed the Application.EnableVisualStyles(); from your main method.

    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles(); // Did you remove this line?
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1());
    }
Oliver
  • 1,507
  • 1
  • 12
  • 23
  • As I'm starting a threaded form from .dll, I haven't even have that line. Added now and solved the issue. Thank you so much! – user2818626 Apr 28 '15 at 04:50