DlgVisible “ControlName”, Value
This statement is used to hide or make visible a particular control on a dialog box.
The parameter ControlName is the name of the control on the dialog box. The parameter Value is the value to set it to. 1 = Visible, 0 = Hidden. On is equal to 1. If the second parameter is omitted the status of the control toggles.
If ControlID$ = "Chk1" Then DlgEnable "Group", On DlgVisible "Chk2" DlgVisible "History" End If