|
-
Aug 24th, 2001, 09:52 AM
#1
Unload All forms on Exit?
How do I ensure that all of my forms unload when I exit my main form, and make sure none of my program might still be running only hidden?
I am trying to use the form collection but is this a separate component that I have to add or what?
For i = Forms.Count – 1 to 0 Step - 1
Unload Forms(i)
Next
-
Aug 24th, 2001, 09:54 AM
#2
PowerPoster
Something like this
VB Code:
Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next frm
-
Aug 24th, 2001, 09:58 AM
#3
Yep that works good, thanks.
Yep that works good, thanks.
-
Aug 24th, 2001, 08:54 PM
#4
PowerPoster
Originally posted by chrisjk
Something like this
VB Code:
Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next frm
LOL Chris, I am imagining that you now have a function button that automatically posts these lines of code Don't worry, am sure it wont be asked again
-
Aug 25th, 2001, 10:10 AM
#5
PowerPoster
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
|