April 2006
Beginner
1114 pages
98h 16m
English
form.Picture [= setting]
Sets or returns the picture loaded as the background. The picture can be set at design time in the Properties window or at runtime using the LoadPicture function. For example, the following code displays a logo as the background of a form, centers the picture, and sizes it to fit the form while preserving the aspect ratio:
Private Sub UserForm_Initialize( )
Me.Picture = LoadPicture(ThisWorkbook.Path & "\logo.bmp")
Me.PictureAlignment = fmPictureAlignmentCenter
Me.PictureSizeMode = fmPictureSizeModeZoom
End SubRead now
Unlock full access