简体   繁体   English

Visual Studio中损坏的Windows窗体

[英]Corrupted windows form in visual studio

VS froze while I was using it, and now whenever I try to open it in the designer, it freezes again, and when I build and run I get no errors. VS在使用时冻结,现在,每当我尝试在设计器中打开它时,它都会再次冻结,并且在我构建和运行时不会出错。 I call the form from my program, THEN it freezes, so it is just That one form, nothing else. 我从程序中调用该表单,然后将其冻结,因此仅是一种表单,仅此而已。 I can't post the code because it's 200+ lines, and my laptop can't connect to internet :( 我无法发布代码,因为它超过200行,并且我的笔记本电脑无法连接到互联网:(

Try deleting the .suo file associated with your project. 尝试删除与您的项目关联的.suo文件 A lot of times that will get corrupted and cause the problem that you have. 很多时候,这会损坏并导致您遇到的问题。 I just noticed that you are able to open your project. 我只是注意到您能够打开您的项目。 Try putting a breakpoint on your InitializeComponent() for the form to see what component is causing your problem. 尝试在窗体的InitializeComponent()上放置一个断点,以查看导致问题的组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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