How can I find a control looking at windows design

2019-02-12 17:46发布

问题:

I have very old code with a lot of controls. On code behind I can find the name of the control. Now I would like easily by it's name find the placement of it on designer view in Visual Studio (or other tool). Is there any possibility to do it?

No list on mine VS:

回答1:

Use the document outline pane (Ctrl + Alt + T) which will include searching a little in the document tree, or the ComboBox in the top of properties pane, which is sorted alphabetically.

Screenshot of ComboBox of properties window, closed and opened



回答2:

not sure if this was what you wanted, and I realise that its an old post BUT:

1 Click on the Form(design) so that you can see your form and the controls.

2 Then click on Properties and just under the Properties title bar you will see a drop-down box. (if you cant see properties then F4)

3 It has a list of all the controls on the form and when you select one, it will take you to that control on the form.