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.
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.