예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FormPrincipal form = new FormPrincipal();

            form.Show();
            this.Hide();
        }
예제 #2
0
 private void FormLogin_KeyPress(object sender, KeyPressEventArgs e)
 {
     {
         if (e.KeyChar == 13)
         {
             FormPrincipal form = new FormPrincipal();
             form.Show();
             this.Hide();
         }
     }
 }