Computing.Net > Forums > Programming > VB6 Unloading all hidden forms

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6 Unloading all hidden forms

Reply to Message Icon

Name: Michael
Date: July 8, 2002 at 04:29:49 Pacific
Comment:

My current VB program has more than some forms and some are used to hold details then hiden. If the main form is closed using the X(close button) top right of the screen the hidden forms stay running.

How can I get the program to unload all forms when the shut it down in this way?

Regards

Michael



Sponsored Link
Ads by Google

Response Number 1
Name: anybody
Date: July 8, 2002 at 05:35:46 Pacific
Reply:

try this:
Unload frmSample1
Unload frmSample2
Unload Me



0

Response Number 2
Name: Rich
Date: July 9, 2002 at 14:04:47 Pacific
Reply:

Or, try this:

For Each Form in Forms
Unload Form
Next

'Forms' is an array containing all the open forms. the loop simply closes them all 1 by 1. very clever!

Rich.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


program in morse code VC++ & MySQL



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6 Unloading all hidden forms

VB6 / Winsock / IPF?? www.computing.net/answers/programming/vb6-winsock-ipf/9025.html

Set focus for JavaScript www.computing.net/answers/programming/set-focus-for-javascript/10960.html

VB6: Exit All Subs www.computing.net/answers/programming/vb6-exit-all-subs/5083.html