private void txtPackno_KeyPress(object sender, KeyPressEventArgs e) { if ((int)e.KeyChar == 13) //回车键 { txtPackno.Text += ";"; this.txtPackno.Select(txtPackno.Text.Length, 0); } }
private void txtPackno_KeyPress(object sender, KeyPressEventArgs e) { if ((int)e.KeyChar == 13) //回车键 { txtPackno.Text += ";"; this.txtPackno.Select(txtPackno.Text.Length, 0); } }
转载于:https://www.cnblogs.com/zhou87/p/4797576.html