private void tbxSerial_KeyPress(object sender, KeyPressEventArgs e) { if (barcode == "") { tbxSerial.Text = ""; } barcode += e.KeyChar; if (e.KeyChar == (char)Keys.Enter) { //tbxSerial.Text = ""; tbxSerial.Text = barcode; barcode = ""; } }
張貼留言
沒有留言:
張貼留言