MessageBox.Show() 多重用法


MessageBox.Show (String) 顯示具有指定文本的消息框。 

   

由 .NET Compact Framework 支持。 

   

MessageBox.Show (IWin32Window, String) 在指定對象的前面顯示具有指定文本的消息框。 

   

MessageBox.Show (String, String) 顯示具有指定文本和標題的消息框。 

   

由 .NET Compact Framework 支持。 

   

MessageBox.Show (IWin32Window, String, String) 在指定對象的前面顯示具有指定文本和標題的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons) 顯示具有指定文本、標題和按鈕的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons) 在指定對象的前面顯示具有指定文本、標題和按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon) 顯示具有指定文本、標題、按鈕和圖標的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon) 在指定對象的前面顯示具有指定文本、標題、按鈕和圖標的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) 顯示具有指定文本、標題、按鈕、圖標和默認按鈕的消息框。 

   

由 .NET Compact Framework 支持。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) 在指定對象的前面顯示具有指定文本、標題、按鈕、圖標和默認按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) 顯示具有指定文本、標題、按鈕、圖標、默認按鈕和選項的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) 在指定對象的前面顯示具有指定文本、標題、按鈕、圖標、默認按鈕和選項的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, Boolean) 顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String) 使用指定的幫助文件顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String) 使用指定的幫助文件顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator) 使用指定的幫助文件和 HelpNavigator 顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, String) 使用指定的幫助文件和幫助關鍵字[guan jian zi]顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator) 使用指定的幫助文件和 HelpNavigator 顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, String) 使用指定的幫助文件和幫助關鍵字[guan jian zi]顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator, Object) 使用指定的幫助文件、HelpNavigator 和幫助主題顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。 

   

MessageBox.Show (IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator, Object) 使用指定的幫助文件、HelpNavigator 和幫助主題顯示一個具有指定文本、標題、按鈕、圖標、默認按鈕、選項和"幫助"按鈕的消息框。   

 

 

DialogResult ret =MessageBox.Show( "確定要刪除[shan chu]記錄么?"  ,  "刪除[shan chu]", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);  

MessageBox.Show( "提示[ti shi]信息", "  信息標題", MessageBoxButtons.OK); 

MessageBox.Show( "提示[ti shi]信息", "  信息標題", MessageBoxButtons.OK, MessageBoxIcon.Error);

     我們在程序中經常會用到MessageBox。     

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM