Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing a form

Status
Not open for further replies.

terminator

Programmer
Dec 28, 2000
2
US
How do you close the form once the application is completed.
I'm writing a vb program that does some system maintenance. However once the program is executed from the dos prompt, the form remains after the program has been executed. How can I have the form close after program execution
 
You should be able to call at the end (before the end sub)
Unload.ME

where me is current form but you can also sub the name of the form. Hope this helps.
 
a better way :

Dim Form As Form
For Each Form In Forms
Unload Form
Set Form = Nothing
Next Form

Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX
Source CodeBook for the programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top