[C# winform] MessageBox on Form Closing
페이지 정보
작성자 sbLAB 댓글 0건 조회 4,822회 작성일 19-10-18 13:26본문
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;
}
}
- 이전글[Visual Studio] Productivity Power Tools 2017/2019 19.11.02
- 다음글[c#] 문자열 중간에 특정문자 삽입하기 00001111 -> 0000-1111 19.05.06
댓글목록
등록된 댓글이 없습니다.