C#中的TextBox.text是string类型
对单个字符操作是需要进行转换:
char[]str=a.ToCharArray();//将字符串转换为字符数组
string b = new string(str);//char数组转换成字符串
b = a.ToUpper();//小写到大写
b = a.ToLower();大写到小写
C#中的TextBox.text是string类型
对单个字符操作是需要进行转换:
char[]str=a.ToCharArray();//将字符串转换为字符数组
string b = new string(str);//char数组转换成字符串
b = a.ToUpper();//小写到大写
b = a.ToLower();大写到小写