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