private void button1_Click(object sender, EventArgs e) // this is your button double click your button and you will find it { Application.Exit(); }