Results 1 to 4 of 4

Thread: What is more efficient?

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    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

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Post

    NEVER load anything unless u need it!

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    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!"

  4. #4

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    Thanks guys.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width