在启用了 Aero 的 Windows 7 上运行 .NET 2.0 应用程序 Windows 窗体应用程序会导致菜单交互导致应用程序崩溃

发布于 11-15 11:17 字数 240 浏览 8 评论 0原文

我正在使用旧版 .NET 2.0 Windows 窗体应用程序。它在 XP 中工作正常,但在 Windows 7 中,如果启用了航空主题,应用程序会启动,但当您单击菜单栏中的“文件”时会崩溃。使用 Windows 基本主题时,该应用程序运行良好。如果我在快捷方式的属性中选择“禁用桌面组合”项,它也可以正常运行。

我已经在 Visual Studio 中运行了代码,并且打开了所有异常,但没有发现任何结果。常规的 Windows 事件日志也没有帮助。

I have a legacy .NET 2.0 windows forms application that I am working with. It works fine in XP but in Windows 7, if an aero theme is enabled the app starts up, but crashes when you click 'File' in the menu bar. The application runs fine when using a windows basic theme. It also runs fine if I select the 'Disable Desktop Composition' item in the properties of the shortcut.

I have run the code in visual studio with all exceptions turned on and found nothing. The regular windows event logs are no help either.

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

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

发布评论

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

评论(1

忆沫2024-11-22 11:17:39

请检查以下项目并再试一次:

  1. 检查 IDE 和操作系统中是否有 32 位或 64 位操作系统。
  2. 保留 .config 文件与 .exe 文件
  3. 尝试修复 .net 2

Please check the following items an give it another try:

  1. Check for 32 or 64 bit OS, both in IDE and your OS.
  2. Keep the .config file with the .exe file
  3. try to repair .net 2
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文