Show control hierarchy in the WinForms designer

C#WinformsVisual Studio-2008.Net 2.0Designer

C# Problem Overview


One of our clients has an old WinForms application that contains forms with a lot of controls on them. Some of those controls have a deep hierarchy and that makes it to hard to select them in the designer.

I need to understand this hierarchy to make modifications to the application to correct some bugs. Is there a way to see this hierarchy clearly? For example, is there something available that is similar to what can be seen in an .aspx source file when you have a breadcrumb of where you are in the HTML hierarchy (HTML > Body > div > etc.)? Or something more visual maybe?

C# Solutions


Solution 1 - C#

You need to use the Document Outline

View > Other Windows > Document Outline

Or via hotkey

Ctl + ALT + T

Solution 2 - C#

Click on View > Other Windows > Document Outline in Visual Studio.

That should show the control hierarchy.

Solution 3 - C#

Visual Style Builder for UI Customization - Download this tool and use it...

Another tool is present which is "Control Spy Tool for Easier Development"

You will find the solution easily..

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCédric VView Question on Stackoverflow
Solution 1 - C#codingbadgerView Answer on Stackoverflow
Solution 2 - C#anonymousView Answer on Stackoverflow
Solution 3 - C#JohnView Answer on Stackoverflow