Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            options newform = new options();

            this.Hide();
            newform.Show();
        }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtusername.Text == "rashna")
     {
         if (txtpassword.Text == "password")
         {
             MessageBox.Show("Login Successful !");
             options newform = new options();
             this.Hide();
             newform.Show();
         }
         else
         {
             MessageBox.Show("Error ! Invalid username or password !");
         }
     }
     else
     {
         MessageBox.Show("Error ! Invalid username or password !");
     }
 }