heisetoufa 发表于 2013-1-27 05:12:58

c#,winform,substring,截取字符串,截串

//string s = "checkBox1";                ////s2为从s中截取的位置为6的字符开始长度为2的字符串,6表示子字符的起始字符位置,2表示子字符长度                //string s2 = s.Substring(8, 1);                //MessageBox.Show(s2); 
 
黑色头发  http://heisetoufa.iteye.com
页: [1]
查看完整版本: c#,winform,substring,截取字符串,截串