예제 #1
0
        private void button1_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");
            }
        }