string message = "è¦å
³éçªå£ï¼";
string caption = "æ示";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result; // Displays the MessageBox. result = MessageBox.Show(this, message, caption, buttons,
MessageBoxIcon.Question); if (result == DialogResult.No)
{ // Closes the parent form. this.Close(); }
温馨提示:答案为网友推荐,仅供参考