Exemplo n.º 1
0
        private void TextBox_LoginPassword_Enter(object sender, EventArgs e)
        {
            Label_LoginPasswordSeparator.BackColor   = Color.FromArgb(119, 119, 136);
            TextBox_LoginPassword.ForeColor          = Color.FromArgb(82, 82, 82);
            PictureBox_LoginPassword.BackgroundImage = PASSWORD;
            Button_Login.BackColor = Color.FromArgb(255, 85, 0);

            if (TextBox_LoginPassword.TextLength == 0)
            {
                loginPassX = Label_LoginPassword.Location.X;
                loginPassY = Label_LoginPassword.Location.Y;

                while (Label_LoginPassword.Location.Y != 223)
                {
                    loginPassY -= 1;
                    Label_LoginPassword.Location = new Point(loginPassX, loginPassY);
                    Thread.Sleep(3);
                }
            }
            TextBox_LoginPassword.SelectAll();
            TextBox_LoginPassword.Focus();
        }
Exemplo n.º 2
0
 private void TextBox_LoginPassword_Click(object sender, EventArgs e)
 {
     TextBox_LoginPassword.SelectAll();
     TextBox_LoginPassword.Focus();
 }