Keep Form Open

  • Thread starter Thread starter Downie
  • Start date Start date
D

Downie

Is there a way to allways keep a form open during a login sesson.

Existing Code for my Form

Private Sub Command3_Exit(Cancel As Integer)
MsgBox ("Unable to close this form")

End Sub
 
Hi,
I'm not exactly sure what you are trying to achieve. Maybe you can clarify
your goals a little.
BUT...I have a couple guesses...either open your form hidden so that no one
could actually close it, it will then be closed automatically when the
application closes. You could also set the close button property of a visible
form to NO and not provide a custom close button (make sure the shortcut
menu-right click menu is disabled as well). Or you could cancel the close of
the form on its unload event e.g. set Cancel = True, BUT this would never
allow the application to shut down, because there is no evaluation, but
rather just a cancel of the close event.
HTH
Good luck
 
Back
Top