
IF checkboxEnable == false
{
imgPicture.Disable()
}
ELSE
{
imgPicture.Enable()
}
Note:
checkboxEnable – a Form control, check box used as a flag in this instance to enable or disable the image.
imgPicture – a Form control, image.
IF boolShow == false
{
imgPicture.Hide()
}
ELSE
{
imgPicture.Show()
}
Note:
boolShow – a Form Variable, used as a flag in this instance to check whether to display or hide the image.
imgPicture – a Form control, image.
The image will not be visible on the form when it is hidden.