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?
Add the control by drawingSelect the control by clicking on it. In your form, drag-select a region. The control will be placed to fit the size of the region you selected.
A UserControl is a collection of controls placed together to be used in a certain way. For example you can place a GroupBox that contains Textbox's, Checkboxes, etc. This is useful when you have to place the same group of controls on/in multiple forms or tabs.
You need to use the Document Outline
View > Other Windows > Document Outline
Or via hotkey
Ctl + ALT + T
Click on View > Other Windows > Document Outline in Visual Studio.
That should show the control hierarchy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With