My window

Created a class which I inherit from Form. When I display it on the screen, the controls do not look as if they were making a window through the designer. The button has no hover effect. There are no blue borders for TextBox, when it is active, etc. You can see everything well on the screenshot. How to fix this defect?

  • And tell me how to remove the triangle in the lower right corner - kovdryavlad

1 answer 1

Need to call

Application.EnableVisualStyles(); 

before

 Application.Run(new MyForm()); 
  • Please add a little more explanation to your answer. - mymedia