private void TextBox_LoginUsername_Enter(object sender, EventArgs e) { Label_LoginUsernameSeparator.BackColor = Color.FromArgb(119, 119, 136); TextBox_LoginUsername.ForeColor = Color.FromArgb(82, 82, 82); PictureBox_LoginUsername.BackgroundImage = USERNAME; Button_Login.BackColor = Color.FromArgb(255, 85, 0); if (TextBox_LoginUsername.TextLength == 0) { loginUserX = Label_LoginUsername.Location.X; loginUserY = Label_LoginUsername.Location.Y; while (Label_LoginUsername.Location.Y != 135) { loginUserY -= 1; Label_LoginUsername.Location = new Point(loginUserX, loginUserY); Thread.Sleep(3); } } TextBox_LoginUsername.SelectAll(); TextBox_LoginUsername.Focus(); }
private void PictureBox_LoginUsername_Click(object sender, EventArgs e) { TextBox_LoginUsername.Focus(); }
private void TextBox_LoginUsername_Click(object sender, EventArgs e) { TextBox_LoginUsername.SelectAll(); TextBox_LoginUsername.Focus(); }