MessageBox.Show - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

MessageBox.Show

Description:

... icon); if(result == DialogResult.Yes) { Application.Exit(); } None No 7 Yes 6 Ignore 5 Retry 4 Abort 3 Cancel 2 OK 1 DialogResult MessageBoxButtons ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 5
Provided by: sze58
Category:

less

Transcript and Presenter's Notes

Title: MessageBox.Show


1
MessageBoxButtons ??
1 AbortRetryIgnore ????? ? ??  
2 OK ??
3 OKCancel ?? ? ??
4 RetryCancel ?? ? ??  
5 YesNo ? ? ?  
6 YesNoCancel ??? ? ??  
MessageBox.Show ("Caption", "Input
Error", MessageBoxButtons.OK, MessageBoxIcon.Exc
lamation)
2
MessageBoxIcon ??
Asterisk ?????????? i  
Error ???????????? X  
Exclamation ???????????????? 
Hand ?????????????? X  
Information ?????????? i  
None ????????? 
Question ???????? 
Stop ???????????? X  
Warning ???????????????? 
3
DialogResult 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
4
linkLabel toolTip
System.Diagnostics.Process.Start ("http//www.ablm
cc.edu.hk/scy/")
Write a Comment
User Comments (0)
About PowerShow.com