private void button1_Click(object sender, EventArgs e) { this.Hide(); u_main ss = new u_main(); ss.Show(); }
//textBox2.PasswordChar = '*'; private void button2_Click(object sender, EventArgs e) { string username = textBox3.Text; string password = textBox4.Text; if ((this.textBox3.Text == "User") && (this.textBox4.Text == "user")) { //attempt = 0; //pictureBox1.Image = new Bitmap(@"C:\Users\Mic 18\Desktop\granted.jpg"); MessageBox.Show("you are granted with access"); this.Hide(); u_main ss = new u_main(); ss.Show(); } else { // pictureBox1.Image = new Bitmap(@"C:\Users\Mic 18\Desktop\denied.jpg"); MessageBox.Show("you are not granted with access"); } }