質問

I've upgraded to Visual Studio 2008 and .net 3.5. I've migrated an application that was running on .net 1.1, and all of my controls still have the 1.1 look and feel. In the designer, the look/style of the controls has updated, but during runtime, it's not.

How do I force the switch?

役に立ちましたか?

解決

Call Application.EnableVisualStyles() at the beginning of Main().

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top