Visual Studio is falling apart on me?

我的未来我决定 提交于 2019-12-06 13:37:25

Some times below helps to catch design time errors. Reference

1) Start a second instance of visual studio

2) go the the Tools menu, "Attach to process", select the 'devenv.exe' process, and click the 'attach' button.

3) In the Debug/Exceptions menu,

Turn on exception catching when first thrown (in the Debug->Exceptions menu).

4) Open the designer with the debugger attached.

5) The second visual studion will break on your error.

Does your TabControl have many tabs? Older versions of WinForms had some bugs when tabs could not visually fit into the TabControl width.

First save your original source somewhere safe, then try deleting tab-by-tab to see if this changes anything. If it does, then at least you have diagnosed the problem and you may have a chance to redesign your UI with fewer tabs...

You've removed or changed the type a property from one of your derived or usercontrol classes that you dropped onto a form. When you dropped it on, it serialized all the properties into the form. Now when you are trying to open the form it's dying because the properties in the serialized version no longer matches the actual class. Unfortunately I don't know how to fix this beyond restoring the removed or changed property.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!