2015-02-09 56 views
0

我在Motorola EMDK 2.8中使用Symbol.Barcode和Symbol.Barcode.DesignCF35.dll。 我正在获得连续发射条形码扫描器OnRead事件的问题。我有摩托罗拉ES400 Windows移动设备。 我在设计视图中将EnableScanner属性设置为True,BufferSize = 7905。并且我还生成OnRead事件表单设计视图。Motorola ES400条形码扫描OnRead事件问题

以下是Barcdoe

 private void barcodeTruck_OnRead(object sender, Symbol.Barcode.ReaderData readerData) 
    { 
     Cursor.Current = Cursors.WaitCursor; 
     try 
     { 

       txtVinNumber.Text = readerData.Text; 

      readerData.Dispose(); 
     } 
     catch (Exception ex) 
     { 
      MessageBox.Show(ex.Message); 
     } 
     Cursor.Current = Cursors.Default; 

    } 

的事件当我按下扫描按钮OnRead事件被触发,它保持不断调用该事件。我在设计中设置属性在下图中给出。 剂量任何人都有解决这个问题?

感谢

回答

0

也许你没有设置你的事件“的数量=真”?

+0

嗨,感谢您的回复。我使用设计生成_OnRead事件。并且没有任何属性可以设置“Handled = True”。你能帮我,我怎么生成条形码事件和设置属性“处理=真” – user3136006 2015-02-23 09:57:55