Exemplo n.º 1
0
 private void tenbs_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         listBS.Focus();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         if (listBS.Visible)
         {
             listBS.Focus();
         }
         else
         {
             SendKeys.Send("{Tab}{Home}");
         }
     }
 }
Exemplo n.º 2
0
 private void cd_chinh_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         listICD.Focus();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         if (listICD.Visible)
         {
             listICD.Focus();
         }
         else
         {
             SendKeys.Send("{Tab}{Home}");
         }
     }
 }
Exemplo n.º 3
0
 private void chandoan_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         listICD.Focus();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         if (listICD.Visible)
         {
             listICD.Focus();
         }
         else
         {
             SendKeys.Send("{Tab}{F4}");
         }
     }
 }
Exemplo n.º 4
0
 private void txtTenvien_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         listTenvien.Focus();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         if (listTenvien.Visible)
         {
             listTenvien.Focus();
             SendKeys.Send("{Down}");
         }
         else
         {
             SendKeys.Send("{Tab}");
         }
     }
 }
Exemplo n.º 5
0
 private void ten_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
     {
         listicd.Focus();
     }
     if (e.KeyCode == Keys.Enter)
     {
         SendKeys.Send("{Tab}");
     }
 }