Skip to content

Instantly share code, notes, and snippets.

@viko16
Created August 13, 2013 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viko16/6221569 to your computer and use it in GitHub Desktop.
Save viko16/6221569 to your computer and use it in GitHub Desktop.
弹出确认框 #winform
private void button1_Click(object sender, EventArgs e)
{
if (MessageBox.Show("是否确认?", "请确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
{
MessageBox.Show("ok");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment