PictureBox

The PictureBox control is used to show bitmap images in the user interface. It supports events to send messages to a connected device when the picture box is clicked on. The visibility of the PictureBox can be controlled from the connected device.

Design-time properties for the PictureBox control
PropertyDescription
ImageThe image to display in the control. Supports .bmp, .jpg, .png and .ico.
OnClickSendThe message to send to the connected device when the picture is clicked.
OnDoubleClickSendThe message to send to the connected device when the picture is double-clicked.
OnMouseDownSendThe message to send to the connected device when the mouse is pressed on the picture.
OnMouseUpSendThe message to send to the connected device when the mouse is released on the picture.
Run-time Properties for the PictureBox control
NameAccessTypeDescription
NameRead onlystringThe name of the control
VisibleRead/writeBoolSet/get control visibility
Run-time properties common to most controls
PropertyAccessTypeDescription
VisibleRead/writeboolHide/show the control
EnabledRead/writeboolEnable/disable the control. When a control is disabled it is visible but shown grayed out and you can't interact with it.
ForeColorRead/writestringAdjust the foreground color
BackColorRead/writestringAdjust the background color
Recent Posts

Leave a Comment

Start typing and press Enter to search