在启用了 Aero 的 Windows 7 上运行 .NET 2.0 应用程序 Windows 窗体应用程序会导致菜单交互导致应用程序崩溃
我正在使用旧版 .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 技术交流群。

请检查以下项目并再试一次:
.config
文件与.exe
文件Please check the following items an give it another try:
.config
file with the.exe
file