View Single Post
Old May 11th, 2006, 11:49 AM   #5
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
I would suggest loading your main form.

Then in the main form load event load frmPassword

when you load frmPassword pass the main form to an overloaded constructor

create a form object on your frmPassword

ex.
Form mainFormInstance;

after the instance is passed to the contructor store it in your new variable

immedialty disable the main form -> mainFormInstance.Enabled = false;

after that create a closing event for frmPassword and within that
enable the main form.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote