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