Off
June 29th, 2001, 12:24 PM
Hi, i've a problem my program. When i click in my menu button "Exit", i call "Unload me" and in the "Query_unload" i set my defined variables to "Nothing" and i Disable my timers (3). But the problem is that the application is always present in my TaskManager. Does someone have an idea about this problem or a peace of code to force the application to stop.
Thanks in advance
Cakkie
June 29th, 2001, 12:31 PM
You must make sure all form of the program are unloaded. If you have any other (like hidden) form open, the app won't exit. You can use the forms collection to check this, and unload them.
private Sub mnuExit_Click()
dim frm as Form
for Each frm in Forms
Unload frm
next frm
End Sub
Also make sure you aren't looping (do loop using DoEvents) anymore, because when you're looping, the form you're looping is just won't unload.
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
deghost
June 30th, 2001, 02:30 AM
try End
----------
The @host is everywhere!
----------