Presentation is loading. Please wait.

Presentation is loading. Please wait.

MessageBoxButtons 按鈕 1 AbortRetryIgnore [中止]、[重試] 和 [忽略]   2 OK [確定] 3

Similar presentations


Presentation on theme: "MessageBoxButtons 按鈕 1 AbortRetryIgnore [中止]、[重試] 和 [忽略]   2 OK [確定] 3"— Presentation transcript:

1 MessageBoxButtons 按鈕 1 AbortRetryIgnore [中止]、[重試] 和 [忽略]   2 OK [確定] 3 OKCancel [確定] 和 [取消] 4 RetryCancel [重試] 和 [取消]   5 YesNo [是] 和 [否]   6 YesNoCancel [是]、[否] 和 [取消]   MessageBox.Show ("Caption", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

2 MessageBoxIcon 說明 Asterisk 圓圈中有一個小寫字母 i   Error 背景為紅色之圓圈中有白色 X   Exclamation 背景為黃色之三角形中有一個驚嘆號  Hand 背景為紅色之圓圈中有一個白色 X   Information None 訊息方塊沒有符號。  Question 圓圈中有一個問號  Stop 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 RetryCancel YesNo YesNoCancel MessageBoxIcon Asterisk Error Exclamation Hand Information None Question Stop Warning

4 linkLabel & toolTip System.Diagnostics.Process.Start ("


Download ppt "MessageBoxButtons 按鈕 1 AbortRetryIgnore [中止]、[重試] 和 [忽略]   2 OK [確定] 3"

Similar presentations


Ads by Google