Skip to content

Instantly share code, notes, and snippets.

@ochilab
Created June 24, 2013 07:01
Show Gist options
  • Save ochilab/5848205 to your computer and use it in GitHub Desktop.
Save ochilab/5848205 to your computer and use it in GitHub Desktop.
メッセージボックスを表示する(C#)
DialogResult result = MessageBox.Show("このファイルを解析しますか?",
"質問",
MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button2);
//YESが押された場合
if (result == DialogResult.Yes) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment