自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

.NET交流部落(我的博客园:http://www.cnblogs.com/chinablog)

.NET开发一群:84010140(满人),.NET开发二群:131627487(满人),.NET开发三群:131628626

  • 博客(8)
  • 资源 (2)
  • 收藏
  • 关注

原创 如何创建隐式类型的数组示例

<br />static void Main() { var a = new[] { 1, 10, 100, 1000 }; // int[] var b = new[] { "hello", null, "world" }; // string[] // single-dimension jagged array var c = new[] { new[]{1,2,3

2011-04-17 01:02:00 245

原创 嵌入资源例子

<br />Assembly asm = Assembly.GetExecutingAssembly(); //MessageBox.Show(asm.GetName().Name); //foreach (string name in asm.GetManifestResourceNames()) //MessageBox.Show(name); Bitmap bitmap = new Bitmap(a

2011-04-17 01:01:00 153

原创 在字符串数组中搜索字符串

<br />string[] strArray = {"ABCDEFG", "HIJKLMNOP"}; string findThisString = "JKL"; int strNumber; int strIndex = 0; for (strNumber = 0; strNumber < strArray.Length; strNumber++) { strIndex = strArray[strNumber].IndexOf(findThisString); if (s

2011-04-17 01:00:00 336

原创 装箱和取消装箱

<br />将值类型转换为引用类型的过程称为装箱。装箱某个变量,就是创建一个引用变量,它指向堆上的新副本。引用变量是一个对象,因此,它可以使用每个对象都继承的所有方法(例如 ToString())。下面的代码进行了具体的说明:<br />int i = 67; // i is a value type object o = i; // i is boxed System.Console

2011-04-17 00:58:00 195

原创 资源文件的简单使用

<br /> Assembly thisExe; thisExe = System.Reflection.Assembly.GetExecutingAssembly(); System.IO.Stream file = thisExe.GetManifestResourceStream("winform.hhh.GIF"); this.pictureBox1.Image = Image.FromStream(

2011-04-17 00:57:00 127

原创 打开文件框简单应用

Stream myStream = null; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "c://"; openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";

2011-04-16 22:39:00 244

原创 从对话框中检索数据

Form2:Form1 mainForm;        public Form2(Form1 mainForm) { this.mainForm = mainForm; InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {

2011-04-16 22:36:00 180

原创 简单动态添加控件

<br />  string[] stringArray = new string[3]; stringArray[0] = "Yes"; stringArray[1] = "No"; stringArray[2] = "Maybe"; System.Windows.Forms.RadioButton[] radioButtons = new

2011-04-16 22:34:00 223

C#皮肤大全,包含各种皮肤

C#皮肤大全,包含各种皮肤,让你的窗体更加精美

2011-04-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除