Graphics are cleared from forms, picture boxes, and image controls by assigning LoadPicture with no argument.
To load graphics for display in a PictureBox control, Image control, or as the background of a form, the return value of LoadPicture must be assigned to the Picture property of the object on which the picture is displayed. For example:
Set Picture = LoadPicture("PARTY.BMP")
Set Picture1.Picture = LoadPicture("PARTY.BMP")
To assign an icon to a form, set the return value of the LoadPicture function to the Icon property of the Form object:
Set Form1.Icon = LoadPicture("MYICON.ICO")
Icons can also be assigned to the DragIcon property of all controls except Timer controls and Menu controls. For example:
Set Command1.DragIcon = LoadPicture("MYICON.ICO")
Load a graphics file into the system Clipboard using LoadPicture as follows: