Application 'hangs around' after exit
Posted on 2006-11-15
When a user exits my app by clicking the red close box in the top right, the app still appears in the Windows Task Manager. If however the user goes to File, and then selects Exit, the app no longer appears in the Task Manager.
I was wondering as to what needs to happen so that my app cleanly exits, irrespective of what exit means a user has selected.
Fyi, selecting Exit from the File menu invokes the following:
Private Sub mnuFileExit_Click()
'it seems we need to keep this here (and not in the Form Unload routine above), else the app hangs
Do Until VB.Forms.Count = 0