Beispiel #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}");
         }
     }
 }
Beispiel #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}");
         }
     }
 }
Beispiel #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}");
         }
     }
 }
Beispiel #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}");
         }
     }
 }
Beispiel #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}");
     }
 }