Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form f2 = new DashBoard();

            f2.Show();
            this.Hide();
        }
Пример #2
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            String user = textBox1.Text;
            String pass = textBox2.Text;

            if (user == "admin" && pass == "admin")
            {
                Form f2 = new DashBoard();
                f2.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Check Username and Password");
            }
        }