This example uses the Hide method to hide a form. To try this example, paste the code into the Declarations section of a non-MDI form, and then press F5 and click the form.
Private Sub Form_Click ()
Dim Msg ' Declare variable.
Hide ' Hide form.
Msg = "Choose OK to make the form reappear."
MsgBox Msg ' Display message.
Show ' Show form again.
End Sub