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 derfloh 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
Joined
Dec 28, 2000
Messages
2
Location
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.
 
is it unload.me or is it unload me

I think there is no period (dot).

Mike
 
It is either:

Unload Me

or

Call Unload(Me)
Simon
 
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