Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Changes applied");
     this.Hide();
     Main main = new Main();
     main.Show();
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Successfully Registered");
     this.Hide();
     Main main = new Main();
     main.Show();
 }
Пример #3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if(TextBox1.Text == "abcd")
            {
                if(TextBox2.Text== "1234")
                {
                    this.Hide();
                    Main main1 = new Main();
                    main1.Show();
                }

                else
                {
                    MessageBox.Show("Invalid Username and Password");
                }
            }
            else
            {
                MessageBox.Show("Invalid Username and Password");
            }
        }
Пример #4
0
 private void button3_Click(object sender, EventArgs e)
 {
     this.Hide();
     Main main = new Main();
     main.Show();
 }