Beispiel #1
0
        private void ShowInfo(BardCodeHooK.BarCodes barCode)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new ShowInfoDelegate(ShowInfo), new object[] { barCode });
            }
            else
            {
                textBox1.Text = barCode.KeyName;


                textBox2.Text = barCode.VirtKey.ToString();
                textBox3.Text = barCode.ScanCode.ToString();
                textBox4.Text = barCode.Ascll.ToString();

                // textBox6.Text = barCode.IsValid ? barCode.BarCode : "";//是否为扫描枪输入,如果为true则是 否则为键盘输入


                label7.Text += barCode.Chr;



                //textBox6.Text = "";
                //MessageBox.Show(barCode.IsValid.ToString());
            }
        }
Beispiel #2
0
 void BarCode_BarCodeEvent(BardCodeHooK.BarCodes barCode)
 {
     ShowInfo(barCode);
 }
Beispiel #3
0
 private void textBox6_KeyDown(object sender, KeyEventArgs e)
 {
     BardCodeHooK.BarCodes barCode = new BardCodeHooK.BarCodes();
     ShowInfo(barCode);
 }