按键焦点
C#在textbox里,如果我按数字1,显示数字1,按数字2时把1替换了,显示2,这个怎么弄呐
2011-09-02 13:45
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
textBox1.Text = e.KeyChar.ToString();
}
2011-09-02 15:09