使用Windows Mobile 6.5和C#
WinMo 6.5中似乎缺少CharacterCasing属性,我决定只捕获textchanged事件并使用ToUpper设置文本.
这有效 - 但是在每个按键上,它会将光标发送回字符串的开头,而不是结尾.
Car*_*nco 13
我知道这是旧的,但希望这可以帮助别人.我实现了如下的KeyPress事件.
private void TextBox_KeyPress(object sender, KeyPressEventArgs e)
{
e.KeyChar = Char.ToUpper(e.KeyChar);
}
Run Code Online (Sandbox Code Playgroud)