borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to center text in command button?)Next Topic (Arguments for second instance of a program..) New Topic New Poll Post Reply
AndreaVB Forum : API : How to know if Windows is going to restart or shutdown?
Poster Message
toughcoder
Level: Guest


icon 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
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : How to know if Windows is going to restart or shutdown?
Previous Topic (How to center text in command button?)Next Topic (Arguments for second instance of a program..) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder