创建透明控件Create a transparent control

  1. 将基本控件放在窗体上。Put the basic control onto the form.

  2. 查看控件的属性。View the control's properties.

  3. 将**BackStyle** 属性设置为透明Set the BackStyle property to Transparent.

  4. 如果控件支持**BorderStyle** 属性, 则将其设置为 ""。If the control supports the BorderStyle property, set it to None.

备注

当您将某个控件设置为透明时, 将不会显示背景色**** , 因此将忽略背景色属性。When you make a control transparent, the background color does not display, so the BackColor property is ignored. 但当控件为透明时, "BackColor" 的设置不会改变。However, the setting for BackColor is not changed when a control is transparent.

另请参阅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.