Results 1 to 2 of 2

Thread: Multiform programs & questions about vbModal, vbModeless, load, unload, hide

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Cliffwood Beach, NJ, USA
    Posts
    6

    Post

    When designing an app with multiple forms what's the right way of loading/displaying/unloading forms? For example you have form1 with a botton that launches form2. If I want form1 to disappear what do I do? When does one hide vs. unload a form when not in use? I guess I'm looking for a professional VB programmer to explain all the different situations and how they are handled.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    If you have form1, and you need to show form2 for a while, and then go back to form1 you usually hide the form (or use form2.show vbmodal, me).
    Unloading a form yu do usually when you don't need the form anymore/not for a long time.
    I prefer to unload forms when I finished using them, at least makes it easy when the program exits since you only have to unload that current form, and not check to see which other forms are loaded.

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