private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            this.Hide();
            adminForm1 ob = new adminForm1();

            ob.Show();
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            String Uname = getUserName(), Upass = "******", name, pass;

            name = textBox1.Text;
            pass = textBox2.Text;
            if (name.Equals(Uname) && pass.Equals(Upass))
            {
                //login
                adminForm1 obj1 = new adminForm1();
                this.Hide();
                obj1.Show();
            }
            else
            {
                MessageBox.Show("Invalid Credentials");
            }
        }