How to find the Control that I added to Form?

后端 未结 2 602
误落风尘
误落风尘 2020-11-27 23:03

I\'ve simply added a control to my form and now I can\'t even see it on the form. But it is still there. How can I find it?

相关标签:
2条回答
  • 2020-11-27 23:39

    In situations that it is not possible to simply click on design surface and select your control, you can select your control using either of these options:

    Document Outline Window

    You can open Document Outline Window using menu View → Other Windows → Document Outline Also using Ctrl+Alt+T shortcut.

    The Document Outline is most useful when you need to put design focus on controls that are deeply embedded within other controls, or that might be hard to select using a mouse or the TAB key.

    • View the logical structure of a Form or a UserControl.
    • Put user input focus on deeply nested controls that may be hard to select on the Form itself or the UserControl itself.
    • Move controls from one parent to another parent.
    • Locate controls that may be visually hidden by other controls.

    Propertie Window

    You can open Propertie Window using menu View → Properties Window Also using F4 shortcut.

    You can select the control form the drop-down which contains all controls.

    0 讨论(0)
  • 2020-11-27 23:41

    Or use the Document Outline window. You can also drag your controls here if they were accidentally misplaced or if you want to change the order of the docked controls.

    0 讨论(0)
提交回复
热议问题