-
I have a form that will, upon users intevention, automatically bring up a second form.
What is more efficient:
Have the form2 load up as the form2 is needed or have both forms load together and set the visible properties of form2 to false until it is needed? (I am concenred about processor and memory usage.) -Note- It may be possible that form2 might not even be needed.
Your help is greatly appreciated,
Daniel Christie
-
NEVER load anything unless u need it!
-
It's a trade-off. Having both load at startup will load slower, but it will take less time to show Form2. Loading only Form1 at startup will make startup faster, but will make showing Form2 slower. Also two other things concerning Form2. 1) You don't need to set it's visible properties to False. Just do a Form2.Show when you want it to be seen. 2) Forms will load faster if the code associated with the form is placed in a code module rather than in the form itself.
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
-