Need help on how to hide a form

  • Thread starter Thread starter Patrick
  • Start date Start date
P

Patrick

HI!!!
I need a form to be open as soon as my application opens
to use later-on the 'Unload' event. so when user decides
to leave application, a message pops-up and he's reminded
of what he's about to do. FOR now this works OK.

My problem is when I call this form(invisible),from the
load event of my main menu(switchboard), its not realy
truly invisible. here's my code:

Private Sub Form_Activate()
Me.Visible = False
End Sub

So what I do is:
1. call the form
2. in the form activate event I write: me.visible=false
Pretty simple and It works Ok,

but is there(And I hope) a better way of hidding a form
out of the users view..

Many thanx in advance for any help you can provide,
Patrick

P.S. Don't want a minimized form.
 
I need a form to be open as soon as my application opens
to use later-on the 'Unload' event. so when user decides
to leave application, a message pops-up and he's reminded
of what he's about to do. FOR now this works OK.

My problem is when I call this form(invisible),from the
load event of my main menu(switchboard), its not realy
truly invisible. here's my code:

Private Sub Form_Activate()
Me.Visible = False
End Sub

You can specify that the form is to be opened hidden by passing the relevant
value to the "WindowMode" parameter of the "OpenForm" method, in this case:

DoCmd.OpenForm "MyFormName",,,,,acHidden
 
Back
Top