欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

c# 關(guān)閉窗體時(shí)提示的小例子

 更新時(shí)間:2013年07月01日 10:53:11   作者:  
這篇文章介紹了c#中關(guān)閉窗體時(shí)提示的小例子代碼,有需要的朋友可以參考一下

復(fù)制代碼 代碼如下:

private void WorkflowConfigure_FormClosing(object sender, FormClosingEventArgs e)
        {

            DialogResult result = MessageBox.Show("此操作會丟棄您的當(dāng)前設(shè)置,確定要繼續(xù)?", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (DialogResult.Yes == result)
            {
                e.Cancel = false;   // Cancel屬性如果為true,表示取消該事件的執(zhí)行。
            }
            else
            {
                e.Cancel = true;
            }
        }

相關(guān)文章

最新評論