Results 1 to 2 of 2

Thread: Unloading or hiding a form?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    I'm experienced with Access and I'm new to this aspect of VB: should I get used to HIDE or UNLOAD my forms?

    Right now I am always .hide(ing) my forms. I noticed that when I "show" that form once again, the load event won't trigger. So I've put my code on the ACTIVATE event instead.

    Could that way of working eventually bring me problems or slowdowns? If unloading a form and showing it back doesn't take much process for Vb, maybe I'd go that way. Also I thought that this way, the data controls on my form would automatically refresh when showing back the form.

    I accept any comments! Thanks!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Unload will erase your program from memory. If you just use Hide method, then your program will stay in a memory but in invisible state.
    So, it will depend on what you're doing. If you're done with the form you better use Unload function, but if you need this form for some other reason then you better use Hide method.


    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



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