0

I am having issues with VisualStyles in a C# WinForms application. I have enabled VisualStyles with the line Application.EnableVisualStyles(); and everything is working on my development PC (running Windows 10 v1709).

However, when I run the exact same .exe on my production PC environment (Windows 10 v1607), VisualStyles are gone and the look of the application looks old.

See this image how the application looks different:

Example of VisualStyle difference issue

How can I fix so the VisualStyles always appear correctly? Target machine is always Windows 10. Very disturbing is that I've tested to do a Hello World WinForms application with VisualStyles and just test-run it on Production PC, and the VisualStyles works on both PCs for that Hello World app. So the issue seemingly exists in the combination of my Production PC and my main application somehow.

stuartd
  • 70,509
  • 14
  • 132
  • 163
  • 1
    try [this](https://www.sevenforums.com/tutorials/1908-visual-effects-settings-change.html) on both machine and see if there's any different (relevant to Windows 10 as well), EDIT: are those custom controls? – styx Nov 28 '18 at 10:37
  • Tried to change that setting but doesn't change anything. No, they are not custom controls. Regular Buttons. – progx6326 Nov 28 '18 at 12:38

0 Answers0