导航

2010年6月5日

摘要: private void button11_Click(object sender, EventArgs e) {//不区分字母大小写比较字符串 String MyStrA="Microsoft "; String MyStrB="MicroSoft "; String MyInfo=""; MyInfo+="\n不分区字母大小写比较"+MyStrA+"和"+MyStrB+"是"; if(Stri... 阅读全文

posted @ 2010-06-05 18:20 ykhi 阅读(17095) 评论(0) 推荐(0)

摘要: private void button2_Click(object sender, EventArgs e) {//去掉字符串头尾指定字符 string MyInfo= "--中华人民共和国--"; //显示 "中华人民共和国" MessageBox.Show(MyInfo.Trim(new char[1] { '-' }), "信息提示", MessageBoxButtons.OK, Messa... 阅读全文

posted @ 2010-06-05 18:15 ykhi 阅读(5462) 评论(0) 推荐(0)