[C# winform] MessageBox on Form Closing > C#/.Net/Blazor/IIS

본문 바로가기
사이트 내 전체검색

C#/.Net/Blazor/IIS

[C# winform] MessageBox on Form Closing

페이지 정보

작성자 sbLAB 댓글 0건 조회 4,510회 작성일 19-10-18 13:26

본문

MessageBox on Form Closing

private
void Form1_FormClosing(object sender, FormClosingEventArgs e)
 

{
    if(MessageBox.Show("Exit or no?",
                       "ApplicationTitle",
                        MessageBoxButtons.YesNo,
                        MessageBoxIcon.Information) == DialogResult.No) {
        e.Cancel = true;
    }
}

댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
184
어제
407
최대
1,279
전체
211,954

그누보드5
Copyright © sebom.com All rights reserved.