private void FrmChangPass_Load(object sender, EventArgs e) { DataTable dt = xl.cbtaikhoan(); cb_taikhoan.DataSource = dt; cb_taikhoan.DisplayMember = "HoTen"; cb_taikhoan.ValueMember = "TaiKhoan"; int a = xl.ktrtk(taikhoan); if (a == 1) { cb_taikhoan.SelectedValue = taikhoan; cb_taikhoan.Enabled = false; btn_doimk.Text = "Đổi mật khẩu"; txt_mkmoi.Enabled = txt_mkxn.Enabled = txt_mkht.Enabled = true; } else { cb_taikhoan.Enabled = true; btn_doimk.Text = "Reset"; txt_mkmoi.Enabled = txt_mkxn.Enabled = txt_mkht.Enabled = false; } }