process before application shutdown.

Does anyone know how to finishing up processing of a VB application before the application is shutdown?

The application has no forms so I can't used the unload event or the queryunload event.

Any assistance would greatly be appreciated.

Thanks.
LVL 1
davismAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LeXienCommented:
try using 'DoEvents' after all the coding - then it will finish processing before closing.
0
davismAuthor Commented:
But what is the "event" that I should use in the program before it closes?
0
rmichelsCommented:
Can you create a dummy, invisible form that will allow you to trap the unload event?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

davismAuthor Commented:
But what is the "event" that I should use in the program before it closes?
0
davismAuthor Commented:
Is there no other way to do this?
0
mcriderCommented:
If your program has no forms, then your program is starting with Main().  It will exexute from the top of Main() to the end of it and then should terminate.

If you are using the END statement at the end of the Main(), put a DoEvents statement right before the END statement.


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
davismAuthor Commented:
Thanks for the assistance.
0
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.