Always in upper case… (C# winforms)

前端 未结 2 1335
情书的邮戳
情书的邮戳 2020-12-07 03:05

I have a TextBox in my form and I added this event on it:

private void txtValue_KeyDown(object sender, KeyEventArgs e)
        {
            Me         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-07 03:54

    If you handle the KeyPress event instead, you can examine the KeyChar property of KeyPressEventArgs to get the correct case.

提交回复
热议问题