Exemplo n.º 1
0
        private void btnThoat_Click(object sender, EventArgs e)
        {
            DangNhapForm dlg = new DangNhapForm();

            dlg.Show();
            this.Close();
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DangNhapForm form = new DangNhapForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new MainForm());
            }
        }