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

본문 바로가기

사이트 내 전체검색

C#/.Net/Blazor/IIS

[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)
 

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

댓글목록

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.
PC 버전으로 보기