国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設計 > 正文

C#中Messagebox.Show()常用參數(shù)用法詳解

2019-11-14 16:52:26
字體:
來源:轉載
供稿:網(wǎng)友

聲明:IWin32Window owner   ,  HelpNavigator navigator ,    string keyWord

上面的三個參數(shù)類型不是很了解。沒有做討論。

等以后了解多了,再做補充。。。

 

下面討論的一些常用參數(shù),在平時使用,已經(jīng)綽綽有余了。。。

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

下面是詳細的代碼  。

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 對話框_終極版
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

PRivate void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(“  1  個參數(shù)www.111cn.net ”
);
}

 

 

 

 

private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 2 個參數(shù)。。 ”,
“亮仔提示”
);
}


 
private void button3_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 3 個參數(shù)。。。 ”,
” 亮仔提示”,
MessageBoxButtons.YesNoCancel
);
}

 

 

 

 
private void button4_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 4 個參數(shù)。。。  “,
” 亮仔提示”,
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning
);
}

 

 

 

 

 

 

private void button5_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 5 個參數(shù)。。 。  “,
” 亮仔提示”,
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2
);
}

 

 

 

 

 

 

private void button6_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 6 個參數(shù)。。。  “,
” 亮仔提示”,
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2,
MessageBoxOptions.RtlReading      //ServiceNotification//.RightAlign   // 標題向右對齊。
);

}

 

 

 

 

 
private void button7_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 7 個參數(shù)。。幫助菜單不可用。。。。。  “,
” 亮仔提示”,
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2,
MessageBoxOptions.RightAlign,
true   // 標題向右對齊。。。。。                                );

}


 

 

 

 

private void button8_Click(object sender, EventArgs e)
{
MessageBox.Show(“ 7 個參數(shù)。幫助菜單    可用。   “,
” 亮仔提示”,
MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2,
MessageBoxOptions.RightAlign  ,   // 要使用默認風格,此處參數(shù)可設為 0
@”C:Documents and SettingsAdministrator桌面新建文本文檔.txt”
);
}


}
}

 

更多詳細內(nèi)容請查看:http://www.111cn.net/net/160/56737.htm


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 陇西县| 淮安市| 靖江市| 曲靖市| 宜黄县| 育儿| 南通市| 谷城县| 卢氏县| 德保县| 宜川县| 海丰县| 横峰县| 原阳县| 清原| 汉川市| 措美县| 同江市| 黄石市| 安溪县| 石渠县| 巍山| 托里县| 宁晋县| 连南| 黄大仙区| 社会| 岗巴县| 宿松县| 渭南市| 丽水市| 望谟县| 龙海市| 毕节市| 徐闻县| 汕头市| 峨眉山市| 应用必备| 阳城县| 正安县| 武陟县|