Example #1
0
 private void clearTextBox()
 {
     UserIDTbx.Clear();
     UserNameTbx.Clear();
     PswdTbx.Clear();
     Disable_Y_RBtn.Checked = true;
 }
Example #2
0
 //passwordTbx-->usernameTbx
 private void PasswdTbx_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 38)
     {
         UserNameTbx.Focus();
     }
 }
Example #3
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();
         }
     }
 }
Example #4
0
 //databaseTbx-->loginBtn
 private void DatabaseTbx_KeyPress(object sender, KeyPressEventArgs e)
 {
     //如果只选择windows身份方式登录
     if (flag == 0)
     {
         if (e.KeyChar == (char)Keys.Enter)
         {
             LoginBtn_Click(sender, e);
         }
     }
     //如果选择混合模式登入
     else
     {
         if (e.KeyChar == (char)Keys.Enter)
         {
             UserNameTbx.Focus();
         }
     }
 }