This is the code Im using to subscribe to the scanned barcode event:
try
{
m_DeviceButtons = new Intel.Healthcare.Device.Buttons( DeviceHardwareListener.Handle );
m_BarcodeHandler = new EventHandler( OnBarcodesScanned );
m_DeviceButtons.BarcodesScanned += m_BarcodeHandler;
}
catch ( Exception exp )
{
logger.WarnException( "Could not connect to the MCA buttons, this platform may not support MCA", exp );
}
Where DeviceHardwareListener is a System.Windows.Form
This is my event function
void OnBarcodesScanned( object sender, BarcodeEventArgs e )
{
string barcode = e.BarcodeReader.Barcodes[ 0 ].Value;
e.BarcodeReader.ReleaseDevice();
IBarcodeListener target = DeviceHardwareListener as IBarcodeListener;
if ( target != null )
{
target.ProcessBarcode( barcode );
}
}
The barcode is sent to our application when doing this. However, there is a dialog titled RS Connection and it pops up when our application is the active window, and it is scanning through baud rates and parities then it goes away and the event fires.
If I have notepad up, this dialog does not appear. How do I make the RS Connection dialog not appear?



