private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(this.textBox1.Text.Length==4) { //执行你的方法 this.textBox1.Text=""; } }
111,130
社区成员
642,542
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧