在combobox里面进行输入,要求每输入一个字母就把它变成大写,不知道怎么处理。我处理如下:
在Textchange里面写:
combobox1.Text.Trim() = combobox1.Text.Trim().ToUpper();但出现新的问题是我输入abc,里面显示的是大写的:CBA,求救。
在Textchange里面写:
combobox1.Text.Trim() = combobox1.Text.Trim().ToUpper();但出现新的问题是我输入abc,里面显示的是大写的:CBA,求救。
public static string fz(string instr)
{
int index = instr.Length;
char[] outstr = new char[index];
foreach (char c in instr)
{
outstr[--index] = c;
}
return new string(outstr);
}
实在不行用这个反转一下
combobox1.Text.Trim() += 输入的字符```
comboBox1.SelectionStart = comboBox1.Text.Length ;