c# - Windows form colors -


I used Visual Studio 2010 in Windows XP, the problem is, other versions like W7 .. or changing my system The theme of upgraded versions also changes the colors of the forms, so can anyone tell me that despite the elements to change the colors dynamically according to the OS or the subjects ???

Just comment on the code below from the Program.cs file Is:

  Application.EnableVisualStyles ();   

And then apply the color or theme to whatever you want and it will be affected in spite of the operating system.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -