将位图分配给控件Assign a bitmap to a control

In the Properties window:In the Properties window:

  1. 选择 "图片" 属性。Choose the Picture property.

  2. In the Picture dialog box, enter the name of the picture and its location.In the Picture dialog box, enter the name of the picture and its location.

If the picture is larger than the control, Microsoft Forms scales the picture to fit the control, regardless of whether you assign the picture through the Properties window or through code.If the picture is larger than the control, Microsoft Forms scales the picture to fit the control, regardless of whether you assign the picture through the Properties window or through code. PictureAlignment 属性确定它在控件中的对齐方式。The PictureAlignment property determines how it is aligned within the control.

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