编程小知识
计算器中的退一格怎么编 啊?望大侠指教!!!!!!!!! --------------------编程问答-------------------- 键盘监听或按BackSpace键时,加个正则判断,然后执行
string s= str.Substring(0, str.Length - 1);
SendKeys.Send --------------------编程问答-------------------- textBox1.Text = textBox1.Text.SubString(0,textBox1.Text.Length-2); --------------------编程问答--------------------
正解! --------------------编程问答--------------------
up --------------------编程问答--------------------
对 --------------------编程问答-------------------- 一楼大侠可能误解本人意思。
二楼大侠正确。
本人代码如下:
if (textBox1.Text.Length > 0)
{
textBox1.Text = textBox1.Text.Remove(textBox1.Text.Length - 1);
}
补充:.NET技术 , C#