private void tbTrckNo_Enter(object sender, EventArgs e)
 {
     Scan s = new Scan(this, "TRACKINGNO", tbTrckNo);
     s.ShowDialog();
 }
 private void tbMatLotNo_Click(object sender, EventArgs e)
 {
     Scan s = new Scan(this, "MATLOTNO", tbMatLotNo);
     s.ShowDialog();
 }
 private void tbProdLotNo_Enter(object sender, EventArgs e)
 {
     Scan s = new Scan(this, "PRODLOTNO", tbProdLotNo);
     s.ShowDialog();
 }
 private void tbBarcode_Enter(object sender, EventArgs e)
 {
     Scan s = new Scan(this, "ITEMCODE", tbBarcode);
     if (s.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         LoadItemDetails(tbBarcode.Text.Trim());
     }
 }