Обработчик пункта меню
Exit
, форма
frmmain
:
private
void
mnuExit_Click(
object
sender, System.EventArgs e)
{
this
.Close();
}