How to Automatic shutdown the PC
Please help me or give me some ideas how to automatic shotdown the PC using C# in windows appliaction. the scenario is i have an shutdown button if it it will be press the PC will automatic close all your your application and shotdown your computer... Thanks
ChrisPosted Feb 3, 2006, 9:10 PM
Application.SetSuspendState(PowerState.Suspend, false, false);
is roughly the command you want. Waking it up again is a bit more complicated though, but it's doable. Chris