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 14, 2017, 3:04 AM
How to do it , automatically
Gautam MakasanaPosted Feb 5, 2013, 3:04 AM
That is amazing and that differentiated with other