c# 的messageBox的各种用法

MessageBox("消息内容", "返回值 确定1",MessageBoxButtons.OK,MessageBoxIcon.Question);
MessageBox("消息内容",, "返回值 确定1 取消2",MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
MessageBox("消息内容", "返回值 终止3 重试4 忽略5",MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error);
MessageBox("消息内容",  "返回值 是6 否7 取消2",MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
MessageBox("消息内容",  "返回值 是6 否7",MessageBoxButtons.YesNo, MessageBoxIcon.Hand);
MessageBox("消息内容", "返回值 重试4 取消2",MessageBoxButtons.RetryCancel, MessageBoxIcon.Information);

MessageBoxIcon: 所有图标样式

MessageBoxIcon.Question                                                                                              MessageBoxIcon.Asterisk                                                                                                     MessageBoxIcon.Information                                                                                                      MessageBoxIcon.Error                                                                                                          MessageBoxIcon.Stop                                                                                                            MessageBoxIcon.Hand                                                                                                        MessageBoxIcon.Exclamation              

文章出处:http://www.diybl.com/course/4_webprogram/asp.net/netjs/2007926/74446.html

你可能感兴趣的:(message)