Esempio n. 1
0
 //serverTbx-->databaseTbx
 private void ServerTbx_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         DatabaseTbx.Focus();
     }
 }
Esempio n. 2
0
 //usernameTbx-->databaseTbx
 private void UserNameTbx_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 38)
     {
         DatabaseTbx.Focus();
     }
 }
Esempio n. 3
0
 //serverTbx-->databaseTbx
 private void ServerTbx_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 40)
     {
         DatabaseTbx.Focus();
     }
 }
Esempio n. 4
0
 //databaseTbx-->loginBtn
 private void DatabaseTbx_KeyDown(object sender, KeyEventArgs e)
 {
     if (flag == 0)
     {
         if (e.KeyValue == 40)
         {
             DatabaseTbx.Focus();
         }
     }
     else
     {
         if (e.KeyValue == 40)
         {
             UserNameTbx.Focus();
         }
     }
 }