Home > Blockchain >  Winform (C#) App's Graphics Quality/Colors changes during run time
Winform (C#) App's Graphics Quality/Colors changes during run time

Time:09-05

As you see can in the pictures Design time colors and run time colors are different. (Looks like it changes to a lower color scheme). I don't have any coding that affects the visuals.

Design Time Run Time

CodePudding user response:

As John said. The project does not have visual styles enabled. There is such a line of code in the Main method of every C# Winform project.

 //Visual style for launching the application

 Application.EnableVisualStyles();

CodePudding user response:

As John mentioned calling visual styles method fixed the problem.

  • Related