BarcodeReadErrorEventArgs Constructor

Event for notifying the application when an error has occurred during a bar code read, such as an insufficient response buffer size.

Namespace: Honeywell.Mobility.DataCollection

Assembly: Honeywell.Mobility.DataCollection.FF3.5 (in Honeywell.Mobility.DataCollection.FF3.5.dll)

Syntax

[C#]
public BarcodeReadErrorEventArgs(
    int errValue,
    string errMessage
)
[Visual Basic]
Public Sub New ( _
    errValue As Integer, _
    errMessage As String _
)

Parameters

errValue
Type: System.Int32
Error value of the error.

errMessage
Type: System.String
String describing the error.

Examples

[C#]
using Honeywell.Mobility.DataCollection;
namespace DataCollection   
{
    public partial class frmBarcodeReader : Form
    {
        private Honeywell.Mobility.DataCollection.BarcodeReader bcr;

        public frmBarcodeReader()
        {
            InitializeComponent();
 
            try
            {
                bcr = new Honeywell.Mobility.DataCollection.BarcodeReader();
                bcr.BarcodeReadError += new BarcodeReadErrorEventHandler(bcr_BarcodeReadError);
                bcr.PostRead = true;
            }
            catch (BarcodeReaderException bcrexp)
            {
                MessageBox.Show(bcrexp.Message);
            }
        }

        void bcr_BarcodeReadError(object sender, BarcodeReadErrorEventArgs breErr)
        {
            this.listBox1.Items.Add("ErrorMessage" + breErr.ErrorMessage);
        }
    }
}
[VB.NET]
Imports Honeywell.Mobility.DataCollection
Public Class BarcodeReader
    Private WithEvents bcr As Honeywell.Mobility.DataCollection.BarcodeReader

    Private Sub BarcodeReader_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            bcr = New Honeywell.Mobility.DataCollection.BarcodeReader()
            bcr.PostRead = True


        Catch bcrexp As BarcodeReaderException
            MessageBox.Show(bcrexp.Message)
        End Try
    End Sub

    Private Sub bcr_BarcodeReadError(ByVal sender As Object, ByVal breErr As Honeywell.Mobility.DataCollection.BarcodeReadErrorEventArgs) Handles bcr.BarcodeReadError 
        ListBox1.Items.Add("ErrorMessage" + breErr.ErrorMessage)
    End Sub
End Class

More Information

BarcodeReadErrorEventArgs Class