示例#1
0
        private void PasswordTB_Enter(object sender, EventArgs e)
        {
            if (PasswordTB.Text == "password")
            {
                PasswordTB.Clear();
            }
            if (hiddenPass)
            {
                PasswordTB.UseSystemPasswordChar = true;
            }
            PasswordTB.SelectAll();
            PasswordTB.Focus();
            passPic.BackgroundImage = Properties.Resources.userPassword2;
            PasswordLn.BackColor    = Color.White;
            PasswordTB.ForeColor    = Color.White;

            userPic.BackgroundImage = Properties.Resources.userLogin;
            UserNameLn.BackColor    = Color.Black;
            UserNameTB.ForeColor    = Color.Black;

            //wrongTB.Visible = false;
        }