Title: MessageBox.Show
1MessageBoxButtons ??
1 AbortRetryIgnore ????? ? ??
2 OK ??
3 OKCancel ?? ? ??
4 RetryCancel ?? ? ??
5 YesNo ? ? ?
6 YesNoCancel ??? ? ??
MessageBox.Show ("Caption", "Input
Error", MessageBoxButtons.OK, MessageBoxIcon.Exc
lamation)
2MessageBoxIcon ??
Asterisk ?????????? i
Error ???????????? X
Exclamation ????????????????
Hand ?????????????? X
Information ?????????? i
None ?????????
Question ????????
Stop ???????????? X
Warning ????????????????
3DialogResult result MessageBox.Show (message,
caption, buttons, icon) if(result
DialogResult.Yes) Application.Exit()
DialogResult
1 OK
2 Cancel
3 Abort
4 Retry
5 Ignore
6 Yes
7 No
None
MessageBoxButtons AbortRetryIgnore OK OKCancel Ret
ryCancel YesNo YesNoCancel
MessageBoxIcon Asterisk Error Exclamation Hand Inf
ormation None Question Stop Warning
4linkLabel toolTip
System.Diagnostics.Process.Start ("http//www.ablm
cc.edu.hk/scy/")