Hotkey
Can I apply Hotkey irrelevantly to the form?
How to use Hotkey
Register Hotkey on openning scanner: ScanCtrl.RegHotKey(1, m_nHotKey, m_bSyncMode, m_nTimeOut);
Unregister Hotkey on closing scanner: ScanCtrl.UnRegHotKey(1);
Obtaining scanner data
private void OnScanData(object sender, ScannerDataArgs e)
{
if (ScanListView.Items.Count > 7)
ScanListView.Items.Clear();
if (e.ScanData != "")
{
ListViewItem ScanData = new ListViewItem();
ScanData.Text = e.ScanType;
ScanData.SubItems.Add(e.ScanData);
ScanListView.Items.Add(ScanData);
PlaySound("\\windows\\Alarm1.wav", 0, (int)(SND.SND_ASYNC | SND.SND_FILENAME));