Need help on how to hide a form

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.
 
B

Bruce M. Thompson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top