|Image - This control allows you to add a graphic or picture to a userform.|
This is used to display a graphic image which can either come from a file or can be pasted from the clipboard.
This graphic is actually stored within the workbook or document so the file can be distributed.
Any files with the following formats can be added (.bmp, .cur, .gif, .ico, .jpg, .wmf)
This is used to display pictures and graphics.
The graphics can be from a file or just pasted from the clipboard onto the control.
When you paste a graphic from the clipboard it is actually saved in the project so you do not need to distribute a separate file.
The Image control's Picture property is a bit different because you either select a graphic file or you can paste a graphic directly from the clipboard. Using (Ctrl + V).
To assign a picture or other bitmap to a control use the Picture property. After you have assigned the picture, you can use any of the following properties to align it: Use the PictureAlignment property to center the picture within the Image or align any corner of the picture with the corresponding corner of the Image. Use the PictureSizeMode property to clip, stretch, or zoom the picture within the Image. Stretching can distort the picture, but zooming will not. Use the PictureTiling property to display multiple copies of the picture within the Image.
It is possible to paste a Bitmap onto a userform control. This uses the Picture property (more details).
To remove a picture that is assigned to a control, click the value of the Picture property in the property page and then press DELETE. Pressing BACKSPACE will not remove the picture
imgPicture.Picture = LoadPicture("C:\Temp\Picture.bmp")
To clear the graphic from the image control use the LoadPicture function without specifying a file name
imgPicture.Picture = LoadPicture
© 2018 Better Solutions Limited. All Rights Reserved. © 2018 Better Solutions Limited TopPrevNext