Visual Studio 2008 “Document Outline” stopped working for the main form in my project

岁酱吖の 提交于 2019-12-12 06:36:51

问题


I'm a big fan of the rather obscure "Document Outline" window in VS 2008 (it's buried in the View -> Other Windows menu).

It's the only way I know to get a view of the containment heirarchy for a complicated WinForm that has a lot of nested controls.

Some months ago, this just stopped working for the most complicated form in my WinForms project. Now it just displays "There are no items to show for the selected document", no matter what I select in the designer.

No clue as to what broke it - the form contains a mix of common MS controls and some third party controls (mainly DevExpress). Several SplitContainers, but Document Outline originally had no problem with these.

Anybody else seen this, and any suggestions on how to fix it?


回答1:


After some poking around, I solved the problem myself.

I just started deleting controls from the form, to see what would happen.

Turns out the 3rd party grid I'm using caused the problem - when I reconfigured it, the problem went away. (Looks like a bug in the control, which I've reported to the vendor).

Interesting...misbehaving controls can break the VS IDE, not just your apps.



来源:https://stackoverflow.com/questions/4326268/visual-studio-2008-document-outline-stopped-working-for-the-main-form-in-my-pr

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