The Perfect Day

分享技术,编写未来

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2006年12月1日

摘要: 有两种联接多个字符串的方法:使用 String 类重载的 + 运算符,以及使用 StringBuilder 类。例:使用 String 类重载的 + 运算符 string str1 = "two";string str2 = "one" + str1+"three"; 例:使用 StringBuilder 类 StringBuilder _str = new StringBuilder();str... 阅读全文
posted @ 2006-12-01 16:52 StephenJu 阅读(584) 评论(0) 推荐(0) 编辑

摘要: private void btnChangeIndex_Click(object sender, EventArgs e) { object objItem = this.listBox1.Items[i]; this.listBox1.Items.RemoveAt(0); this.listBox1.Items.I... 阅读全文
posted @ 2006-12-01 16:06 StephenJu 阅读(1066) 评论(0) 推荐(0) 编辑

摘要: 一共有4种实现方法 Using constructor Using objects Using properties Using delegates 这里主要介绍方法3、4 方法3: Step 1: Add a property in form1 to retrieve value from textbox. public string _sendt... 阅读全文
posted @ 2006-12-01 15:29 StephenJu 阅读(2270) 评论(0) 推荐(0) 编辑

摘要: SqlConnection conn = new SqlConnection("server=zzy;integrated security=sspi;database=library"); SqlCommand cmd; private void btninsert_Click(object sender, EventArgs e) { ... 阅读全文
posted @ 2006-12-01 09:57 StephenJu 阅读(2908) 评论(0) 推荐(0) 编辑