private void btnKeyboard_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new Form_NumericPad();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             txtBarcodeNo.Text = frm.ReturnValue.ToString();
             ProcessData();
         }
     }
     catch (Exception)
     {
         txtBarcodeNo.Text = "";
         throw;
     }
 }
 private void btnKeyboard_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new Form_NumericPad();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             lblProductCode.Text = frm.ReturnValue == 0 ? "" : frm.ReturnValue.ToString();
             LoadProduct();
         }
     }
     catch (Exception ex)
     {
         lblProductCode.Text = "";
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }