简体   繁体   中英

visual studio C# Mysterious change to winform look and feel

I have been creating a simple report application using winforms and crystal in Visual Studio 2010. All was good until one day I opened it up, gave it a run and the entire look and feel changed to the classic windows style. I can't figure out what the heck I did to change this. I have been looking through every setting and property I can find and have not been able find anything. In the picture provided, the top window is what it looks like in my designer, and what it looked like before the change. The bottom picture shows what it looks like now when running. 这是一张怪异的照片。还有什么你想知道的

Any ideas?

It looks like you removed this line:

Application.EnableVisualStyles();

from your Programs.cs file in the Main() method. That's the only way I was able to get that classic look.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM