Beispiel #1
0
 private void txtNomePesquisa_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         DataGriewSearch.Focus();
     }
 }
Beispiel #2
0
        private void txtNomePesquisa_KeyDown(object sender, KeyEventArgs e)
        {
            //if(e.KeyCode == Keys.Enter)
            // {
            //     PesquisaServico();
            // }
            //else

            if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
            {
                DataGriewSearch.Focus();
            }
            else
            {
                PesquisaServico();
            }
        }