hi steven,thank you for answering my last question.Now I meet the new trouble .when my program runs at PC,shift+F1 hotkey can
callback the BarcodesScanned event correctly,but when i run it on the mca ,it doestn't work.Otherwise ,even on the mca,the
BarcodeButtonClick event seemed good.Is that the device have not release? I can use the barcodebutton to input the code to
the notepad.
my codes as below:
Intel.Healthcare.Device.Buttons btn;
EventHandler mBarcodeScannedHand = null;
public FormMain()
{
InitializeComponent();
btn = new Buttons(this.Handle);
mBarcodeScannedHand = new EventHandler(mBtn_BarcodesScanned);
this.btn.BarcodesScanned += this.mBarcodeScannedHand;
}
void mBtn_BarcodesScanned(object sender, BarcodeEventArgs args)
{
string displayStr = "the code is :" + args.BarcodeReader.Barcodes[0].Value + "<" + args.BarcodeReader.Barcodes
[0].Type.ToString() + ">";
MessageBox.Show(displayStr);
args.BarcodeReader.ReleaseDevice();
}


