Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2012 UnLogged Out User when Power failure

$
0
0
Hi im a beginner in vb.net and and i am having hard time what to do if power failure occurs for example ,
by the way im using sql server

i want to log out the user when power failure happens,

the useraccounts table in sql server have a log status column if a user logged in the log, log status will be = 1 if logged out it will be = 0
i tried using the formclosing event and haha after pulling the power i checked the sql server and its still logged in i don't want to try it again and again my windows might crash.

i used windowsshutdown, taskmanager closing, application exit when i shut down from start menu it did made the log status to 0, but haha when power cord pulled no luck.

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>