AndreaVB Forum : API : How to know if Windows is going to restart or shutdown?
Poster
Message
toughcoder Level: Guest
How to know if Windows is going to restart or shutdown?
Greetings Every1,
is there a way by which my program will know if window is going to restart or shutdown so that it can perform some tasks and close. Plz help.
08-10-2004 at 12:35 PM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: How to know if Windows is going to restart or shutdown?
Check the Form_QueryUnload event, it has unloadmode parameter that tells you what is closing the form, so you can know if it is going to be closed internally or externally.
____________________________
If you find the answer helpful, please mark this topic as solved.
08-10-2004 at 08:57 PM
|
AndreaVB Forum : API : How to know if Windows is going to restart or shutdown?