private void changepasswordButton_Click(object sender, EventArgs e) { Change_Password cp = new Change_Password(user); this.Hide(); cp.Show(); }
private void button5_Click_1(object sender, EventArgs e) { //this.Hide(); Change_Password ch = new Change_Password(); ch.Show(); /* SqlConnection con = new SqlConnection(@"Data Source=DESKTOP-G7IISFU;Initial Catalog=Data;Integrated Security=True"); * con.Open(); * string query = "select * from t2 where ID = '" + label9.Text + "'"; * SqlCommand cmd = new SqlCommand(query, con); * SqlDataReader sdr = cmd.ExecuteReader(); * if (sdr.Read()) * ch.label8.Text = (sdr["Password"].ToString()); * ch.label4.Text = (sdr["ID"].ToString()); * con.Close();*/ }