[英]How to not display key in textbox
I'd like to know how to solve my little problem. 我想知道如何解决我的小问题。 Im making calc with C# and have problem there:
即时通讯使用C#进行计算,并在此处遇到问题:
if (e.KeyCode == Keys.Add)
{
textBox1.Clear();
IfNumbersExist();
SelectedOperation = Operation.Add;
IsSecondNumberBeingEntered = true;
}
So the problem is that when I'm pressing Add key textBox data is clearing, but '+' is still there. 所以问题是当我按下添加键时,textBox数据正在清除,但是“ +”仍然存在。 How to clear whole textBox to not display '+' too ?
如何清除整个textBox也不显示'+'?
Thanks 谢谢
在黑暗中拍摄一些东西,但尝试将其添加到if
语句中的某个位置:
e.Handled = true;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.