|
-
Jan 29th, 2002, 04:59 PM
#1
Thread Starter
Hyperactive Member
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.
-
Jan 29th, 2002, 05:03 PM
#2
Hyperactive Member
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]
-
Jan 29th, 2002, 05:04 PM
#3
Addicted Member
Try the Form_Activate() event.
-
Jan 29th, 2002, 05:16 PM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|