|
-
Nov 7th, 2003, 05:13 PM
#1
Thread Starter
Member
Forms - Showing vs. Loading
I thought I'd share something I just realized although I feel foolish for not understanding this earlier.
When a form is loaded using the Load command, the Load Form event executes even though the user does not see the form on the screen. When a form is loaded using the Show method, the Load Form event executes and the user sees the form on the screen.
When a previously loaded form is made visible with the Show method, the Load Form event does not re-execute.
Anyone else have some pointers on the way forms work?
BluesMatt
-
Nov 10th, 2003, 12:32 AM
#2
Yeah, that's why you use the
statement when you've finished with a form, not only does it free the memory used, but it lets you re-execute the Form_Load code again
Last edited by Ideas Man; Nov 10th, 2003 at 12:41 AM.
-
Nov 10th, 2003, 05:10 AM
#3
that is true, but there are other events (such as form_activate) that are run every time hte form is shown
VB help (somewhere) has a list of all the events that occur to a form, and the order that they occur in. I think somebody posted it on this form a few weeks ago.
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
|