private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "abhishekg785" && password.Text == "hello@123") { PROFILE obj = new PROFILE(); obj.Show(); this.Hide(); } else { MessageBox.Show("invalid username or password"); } }
private void button5_Click(object sender, EventArgs e) { PROFILE ob = new PROFILE(); ob.Show(); this.Hide(); }