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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Not Closing???

Status
Not open for further replies.

slinko

Programmer
Jan 21, 2001
14
0
0
US
Hi All, I am having a problem with a MDI Application I wrote and was wondering if it has ever happened to anyone else. When I close the application, if I ctrl-alt-del, the application is still shown to be running in the task manager. I unloaded all the forms, I don't know why its happening, at least I never had this problem before. Thanks in advance for any suggestions!!!
 
First, Make sure that you are using Unload frmForm, rather then Form.hide
 
Code:
Dim frm as object
For Each frmw in forms
    If frmw is me then
        unload frmw
    End if
Next
Unload me
If you have any form level variables that contain an object then be sure to set them to Nothing.
 
Thanks for the response, missed a few recordset objects in my code. Thanks again.
 
Good. For the benefit of anyone looking at the code later, I left out a NOT
Code:
Dim frm as object
For Each frmw in forms
    If Not (frmw is me) then
        unload frmw
    End if
Next
Unload me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top