0

I am working on a Windows form Application, came up with some weird behavior. The appearance of all the buttons in the form are getting changed when running the application using Visual Studio.

For example : Button style and Appearance at Design time,

enter image description here

While at runtime Buttons look like as below,

enter image description here

Any help will be highly appreciated.

user2147315
  • 23
  • 1
  • 8
  • Probably taking the same default look as your other Windows UI elements? – Rietty Feb 21 '19 at 20:08
  • it may be a possibility, but then which settings needs to be change? – user2147315 Feb 21 '19 at 21:49
  • It is the "classic" look, the designer always assumes that Visual Styles are enabled. Like they normally are, look at your Main() entrypoint in program.cs. The Application.EnableVisualStyles() call is expected to be present there. – Hans Passant Feb 26 '19 at 14:27
  • Thank you @hans-passant , This is a valid point. But I recheck "Main()" entrypoint of the application, "Application.EnableVisualStyles()" is present there. The other point is, I am using Telerik win controls as well in the application. Is there any case where windows controls and Telerik controls are conflicting and causing this issue? – user2147315 Feb 27 '19 at 14:17

0 Answers0