C# の MessageBox について色々試してみた.
ソースコードはこんな感じ.
string ss_message = “サンプル”; // ss_message には一時的に使用.
MessageBox.Show(
ss_message,
“Title”,
MessageBoxButtons.OK,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button1
);
MessageBoxButtons.○○○ の ○○○ の部分を変更して実行してみた.

| AbortRetryIgnore | ![]() |
| OK | ![]() |
| OKCancel | ![]() |
| RetryCancel | ![]() |
| YesNo | ![]() |
| YesNoCancel | ![]() |
MessageBoxIcon.○○○ の ○○○ の部分を変更して実行してみた.
![]()
| Asterisk | |
| Error | |
| Exclamation | |
| Hand | |
| Information | |
| None | |
| Question | |
| Stop | |
| Warning | |
違う設定なのに同じ表示になっている部分がある.何か他の設定が必要なのだろうか?
よくわからないが,とりあえず保留にしとく.





