//string s = "checkBox1"; s2为从s中截取的位置为6的字符开始长度为2的字符串,6表示子字符的起始字符位置,2表示子字符长度 //string s2 = s.Substring(8, 1); //MessageBox.Show(s2);
//string s = "checkBox1"; s2为从s中截取的位置为6的字符开始长度为2的字符串,6表示子字符的起始字符位置,2表示子字符长度 //string s2 = s.Substring(8, 1); //MessageBox.Show(s2);