private void cmdSearchCustomerTo_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
     {
         if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmCustomerZoom.sResult != "")
             {
                 txtCustomerTo.Text = frmCustomerZoom.sResult;
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }
        private void cmdSearchCustomer_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;

            using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
            {
                if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmCustomerZoom.sResult != "")
                    {
                        txtCustomerCode.Text = frmCustomerZoom.sResult;
                        txtCustomerCode.Focus();

                        txtCustomerCode.SelectionStart = 0;
                        txtCustomerCode.SelectionLength = txtCustomerCode.Text.Length;

                        DBLoadCustomerDetails(false, false);
                    }
                }
                Cursor = System.Windows.Forms.Cursors.Default;
            }

            Cursor = Cursors.Default;
        }
 private void findCustomer(TextBox srcBox)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
     {
         if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmCustomerZoom.sResult != "")
             {
                 srcBox.Text = frmCustomerZoom.sResult;
                 srcBox.Focus();
                 srcBox.SelectionStart = 0;
                 srcBox.SelectionLength = srcBox.Text.Length;
                 sCustDelivCode = frmCustomerZoom.sCustDelivCode;
                 loadCustomer(false, false);
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }