How do i process logoff operation

S

spncc

i'm using VS 2005 to make the window form authen application. there is
a logon status to make use of logoff procedure when the user click on
it. however if the user didn't click at logoff control, how do i
determine the event of the closing application to process internal
logoff procedure ???

appreciate all ideas
:)
 
S

spncc

You can process your form's FormClosing event [1] to be informed when the
user has requested the form close by various means. You won't get this event
if the application is terminated abnormally (like an exception occured, etc.).

[1]http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.fo...

--
Browsehttp://connect.microsoft.com/VisualStudio/feedback/and vote.http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#



spncc said:
i'm using VS 2005 to make the window form authen application. there is
a logon status to make use of logoff procedure when the user click on
it. however if the user didn't click at logoff control, how do i
determine the event of the closing application to process internal
logoff procedure ???
appreciate all ideas
:)- Hide quoted text -

- Show quoted text -

Sorry Peter, i'm doing web application. i can't find that event in
the web page. Or can i make it up ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top