예제 #1
0
 private void txtNomePesquisa_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         DataGriewSearch.Focus();
     }
 }
예제 #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();
            }
        }