Affected : Form
Purpose : The ControlBox property governs whether a control box appears in the top-right corner of a form. This property is read -only at runtime.
Syntax :
[ form . ] ControlBox
Argument of the ControlBox Property
form : Name property of the form ( if no name is specified, references the current form's controlbox property )
Public Sub SetColor ( FormName As Form )
If FormName.ControlBox = 0 Then
FormName.BackColor = RGB ( 192, 192 192 )
Else
FormName.BackColor = RGB ( 0 , 128 , 0 )
End If
End Sub
No comments:
Post a Comment