我有一個文本框,我只想要數字。但是如果我輸錯了數字,我不能退格來糾正它。我怎樣才能讓後臺工作。由於只爲數字掩蓋文本框,但不會接受BackSpace
private void amount_PaidTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (Char.IsNumber(e.KeyChar) != true)
{
e.Handled = true;
}
}
不能使用的蒙面文本框? – shahkalpesh 2009-06-29 22:14:09