用扫码枪扫描数据时,自动统计扫描数量的计数程序
添加时间:2019-02-26 22:31:46
来源:
条形码号扫描在TextBox中,扫描数量统计在Label控件中
private int a = 1;
private void textBox3_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyValue == 13)
{
this.label7.Text = Convert.ToInt32(a).ToString();
a = a + 1;//计数加1
}
}
可以放到text控件 的tag里作为计数
2019-02
条形码号扫描在TextBox中,扫描数量统计在Label控件中privateinta=1;privatevoidtextBox3_KeyDown(objectsender,KeyEventArgse){if(e.KeyValue==13){this.label7.Text=Con…… [了解更多]
地 址:中国(上海)自由贸易试验区临港新片区平港路883-885号1幢
邮政编码:201411
电 话:13761963296
邮 箱:847098433@qq.com
投诉邮 箱:info@xtvu.com