Visible 属性 (Microsoft Forms)Visible property (Microsoft Forms)

指定对象是可见还是隐藏。Specifies whether an object is visible or hidden.


对象可见[= Boolean ]object.Visible [= Boolean ]

Visible 属性语法包含以下部分:The Visible property syntax has these parts:

PartPart 说明Description
objectobject 必需。Required. 对象有效。A valid object.
BooleanBoolean 可选。Optional. 对象是可见还是隐藏。Whether the object is visible or hidden.


Boolean 的设置如下:The settings for Boolean are:

Value 说明Description
TrueTrue 对象可见(默认)。Object is visible (default).
FalseFalse 对象隐藏。Object is hidden.


可用 Visible 属性控制访问信息但不显示信息。Use the Visible property to control access to information without displaying it. 例如,您可以使用隐藏窗体上的控件的值作为查询条件。For example, you could use the value of a control on a hidden form as the criteria for a query.

所有控件在设计时都可见。All controls are visible at design time.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.