Results 1 to 4 of 4

Thread: form load/show

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    form load/show

    This is interesting... I have a form that is sometimes shown throughout my app. The Form_Load() event is only called the first time the form is shown (using frmSmallForm.show). However, I want certain code to be executed everytime the form is shown, and ther e is no Form_Show() event. How can I do this?
    Thanks.

  2. #2
    Hyperactive Member MetallicaD's Avatar
    Join Date
    Feb 2001
    Location
    Tallahassee, FL
    Posts
    488
    The reason why its only calling the form load event the first time is because you arent unloading your form properly.. you must just be doing a .hide.. you should use Unload me.. that way, the next time you do .show, it will trigger form_load

    -mcd
    [vbcode]
    '*****************************
    MsgBox "MCD :: [email protected]", vbInformation + vbOKOnly, "User"
    '*****************************
    [/vbcode]

  3. #3
    Addicted Member Pickler's Avatar
    Join Date
    May 2001
    Location
    nffanb
    Posts
    248
    Try the Form_Activate() event.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334
    both seem to work. form_activate is probably speedier, but since there's notm uch being done, either will be fine for me.
    thanks a lot!

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