폼을 닫히지 않게 하는 것은 Closing 이벤트에서 처리할수 있습니다.
        private void FrmCommand_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
        }

참고로 Closed 이벤트는 프로그램이 종료 되었을 때 발생됩니다.

+ Recent posts