Ejemplo n.º 1
0
        private void tbSellCustomerID_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F3)
            {
                FormSearchCus frmSearch = new FormSearchCus();
                frmSearch.ShowDialog();

                if (frmSearch.Selected == true)
                {
                    tbSellCustomerID.Text      = frmSearch.SelectCustomerID;
                    tbSellCustomerName.Enabled = true;
                    tbSellCustomerName.Text    = frmSearch.SelectCustomerName;
                    tbSellSeller.Enabled       = true;
                    tbSellSeller.Focus();
                }
                else
                {
                    tbSellCustomerID.Focus();
                }
            }
        }
Ejemplo n.º 2
0
        private void tbSellCustomerID_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F3)
            {
                FormSearchCus frmSearch = new FormSearchCus();
                frmSearch.ShowDialog();

                if (frmSearch.Selected == true)
                {
                    tbSellCustomerID.Text = frmSearch.SelectCustomerID;
                    tbSellCustomerName.Enabled = true;
                    tbSellCustomerName.Text = frmSearch.SelectCustomerName;
                    tbSellSeller.Enabled = true;
                    tbSellSeller.Focus();
                }
                else
                    tbSellCustomerID.Focus();
            }
        }