Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide/Show Form1 from Module

Status
Not open for further replies.

TDogg

MIS
Dec 11, 2000
11
US
How can i get Form1 to startup hidden then use a command in a module or from another form to unhide it?

-TDG
 
Instead of doing Form1.Show, use "Load Form1". This will load the form but not show it. It will execute whatever is in the form_load event. Then to show it you use Form1.Show. You can also use Form1.Hide to hide it.

Something like this:

Public Sub main()
Load Form1
End Sub
Snaggs
tribesaddict@swbell.net
 
You can set the startup procedure as Sub Main and have such a procedure in the module.In sub Main when you are ready put frmForm1.show in the same module.



PK Odendaal
pko@mweb.co.za

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top