//初始化Combox private void initLoginComboBox() { Combo_User.BackColor = Color.FromArgb(255, 255, 255);; Combo_User.Enabled = true; Combo_User.SelectedIndex = 2; Btn_Login.BackColor = Color.FromArgb(253, 253, 191); Btn_Login.Enabled = true; Text_Password.BackColor = Color.FromArgb(255, 255, 255); Text_Password.Enabled = true; Text_Password.Text = ""; Text_Password.Focus(); }
private void Combo_User_SelectedIndexChanged(object sender, EventArgs e) { Text_Password.Text = ""; Text_Password.BackColor = Color.White; Text_Password.Focus(); }