string caption = "刪除";
string message = "是否刪除該組件";
MessageBoxButtons btn = MessageBoxButtons.YesNo;
DialogResult result = new DialogResult();
result = MessageBox.Show(message, caption, btn);
if (result == System.Windows.Forms.DialogResult.Yes)
{
//處理代碼
}
c# 刪除對話框
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章