Import System.Diagnostics(using System.Diagnostics)in code behind file
Then in shutdown button onclick event write
Process.Start("shutdown", "/s /f");/Force Shutdown
Process.Start("shutdown", "/s /t");/Normal Shutdown
Process.Start("shutdown", "/r ");/Force Restart
Application.Exit();
Then in shutdown button onclick event write
Process.Start("shutdown", "/s /f");/Force Shutdown
Process.Start("shutdown", "/s /t");/Normal Shutdown
Process.Start("shutdown", "/r ");/Force Restart
Application.Exit();
Comments
Post a Comment