示例#1
0
        private void btnThoat_Click(object sender, EventArgs e)
        {
            DangNhapForm dlg = new DangNhapForm();

            dlg.Show();
            this.Close();
        }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DangNhapForm form = new DangNhapForm();

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