Step-1: Add a namespace
using System.Diagnostics;
Step-2: Write few lines of code on button click:
private void button1_Click(object sender, EventArgs e)
{
ProcessStartInfo startinfo = new
ProcessStartInfo("shutdown.exe", "-s");
Process.Start(startinfo);
}


Prashant SinghPosted Jul 13, 2017, 11:04 PM EDT
How to do it , automatically
Gautam MakasanaPosted Feb 4, 2013, 10:04 PM EST
That is amazing and that differentiated with other