How to find the Control that I added to Form?

2019-01-04 14:43发布

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条回答
家丑人穷心不美
2楼-- · 2019-01-04 15:23

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.

enter image description here

查看更多
淡お忘
3楼-- · 2019-01-04 15:41

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.

enter image description here

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.

enter image description here

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

查看更多
登录 后发表回答