升级到VS2008,但winform控件还是VS2003风格

发布于 2024-12-24 23:43:40 字数 139 浏览 5 评论 0原文

我已升级到 Visual Studio 2008 和 .net 3.5。我已经迁移了在 .net 1.1 上运行的应用程序,并且我的所有控件仍然具有 1.1 的外观和感觉。在设计器中,控件的外观/样式已更新,但在运行时期间并未更新。

如何强制切换?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆里有你的影子 2024-12-31 23:43:40

调用 Application.EnableVisualStyles()位于 Main() 的开头。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文