Returns or sets a picture object to be displayed on the object.
Object.Picture [ = pic ]
The Picture property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
pic |
A picture object. The default is no picture. |
The Picture image is displayed as the form background image. The picture can either be:
stretched to fill the form or
displayed at its original image size. If displayed at its original image and the original image size is larger than the form size, the picture image is clipped to fit the form size.
The following statement changes the AForm's Picture to a given image file:
frm1.Picture = LoadPicture ("c:\dirname\filename.bmp")
frm1.PictureDrawMode=aformPictureDrawModeTile