How can I find a control looking at windows designer in visual studio 2012?

让人想犯罪 __ 提交于 2019-11-30 02:58:41

问题


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.



来源:https://stackoverflow.com/questions/17451439/how-can-i-find-a-control-looking-at-windows-designer-in-visual-studio-2012

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