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