[C# winform] MessageBox on Form Closing
작성일 19-10-18 13:26
페이지 정보
작성자sbLAB 조회 4,622회 댓글 0건본문
MessageBox on Form Closing
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if(MessageBox.Show("Exit or no?",
"ApplicationTitle",
MessageBoxButtons.YesNo,
MessageBoxIcon.Information) == DialogResult.No) {
e.Cancel = true;
}
}
댓글목록
등록된 댓글이 없습니다.