SetPictureBoxImage
Syntax
setPictureBoxImage(panel, control, imagefile);
Function
Replaces the image of thePanel DesignerPicture Boxcontrol during runtime. The panel is accessed by its individual panel name that is entered in thePanel Designer.
Parameters
panel Panel name, restricted to 128 characters."" – references allloaded panelsIf you open a panel the first time, the panel is loaded.
If you close the panel, it remains loaded.
control
Name of the control, restricted to 128 characters."" – references all controls on the panel.
iamgefile
Path and name of the image file.
Return Values
—
Setting image file usingabsolutepath. on key 'x'{SetPictureBoxImage("Movie", "Picture Box", "D:\\Example\\PictureBoxProject\\Images\\Picture.bmp");} Setting image file usingrelativepath. The image is in theImagesfolder and this folder is parallel to the panel folder. on key 'y'{SetPictureBoxImage("Movie", "Picture Box", "..\\Images\\Picture.bmp");}
SetMediaFile