0

我在摩托罗拉 EMDK 2.8 中使用 Symbol.Barcode 和 Symbol.Barcode.DesignCF35.dll。我收到条码扫描仪连续触发的 OnRead 事件的问题。我有摩托罗拉 ES400 windows 移动设备。我在设计视图中将 EnableScanner 属性设置为 True 和 BufferSize = 7905。我还生成 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 事件并不断调用该事件。我在设计时设置了属性,如下图所示。有人有解决这个问题的方法吗?

谢谢

4

1 回答 1

0

也许您没有将事件设置为“Handled = True”?

于 2015-02-10T13:54:42.210 回答