visual studio windows form exit button code example
Example: visual studio windows form exit button
private void btnExitProgram_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void btnExitProgram_Click(object sender, EventArgs e)
{
Application.Exit();
}