MessageBoxButtons.OKCancel的选择事件
private void 退出ToolStripMenuItem1_Click(object sender, EventArgs e)
{
DialogResult resault = MessageBox.Show("确定退出?", "退出", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
if (resault==DialogResult.OK)
{
this.Close();
}
}