Actually it is not possible. The Visible property is a read-only property. You should use Form.Hide to hide a form.frmMain.Visible = False
When we type "Control("Form1").Visible" we can get and set a boolean value...Actually it is not possible. The Visible property is a read-only property. You should use Form.Hide to hide a form.