private void button3_Click(object sender, EventArgs e)
        {
            home pk = new home();

            pk.Show();
            this.Hide();
        }
        private void back_Click(object sender, EventArgs e)
        {
            home l = new home();

            l.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            String username = "******";
            String password = "******";

            if ((textBox1.Text == username) && (textBox2.Text == password))
            {
                MessageBox.Show("Welcome back, Guest!");

                home h = new home();
                h.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Enter A login Details", "Login", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
            }
        }