如何找到我添加到表单的控件? [英] How to find the Control that I added to Form?

查看:31
本文介绍了如何找到我添加到表单的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在表单中添加了一个控件,现在我什至无法在表单上看到它.但它仍然存在.我怎样才能找到它?

解决方案

在无法简单地单击设计图面并选择控件的情况下,您可以使用以下任一选项来选择控件:

文档大纲窗口

您可以使用菜单视图→其他窗口→文档大纲打开文档大纲窗口,也可以使用Ctrl+Alt+T快捷键.>

当您需要将设计重点放在深深嵌入其他控件中的控件上,或者使用鼠标或 TAB 键可能难以选择的控件上时,文档大纲最有用.

  • 查看表单或用户控件的逻辑结构.
  • 将用户输入的重点放在可能难以在 Form 本身或 UserControl 本身上选择的深层嵌套控件上.
  • 将控件从一个父级移动到另一个父级.
  • 找到可能被其他控件在视觉上隐藏的控件.

属性窗口

您可以使用菜单视图→属性窗口打开属性窗口,也可以使用F4 快捷方式.

您可以从包含所有控件的下拉列表中选择控件.

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?

解决方案

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.

这篇关于如何找到我添加到表单的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆