static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmLogin login = new frmLogin(); if (login.ShowDialog() == DialogResult.OK) { Application.Run(new frmMain()); } }
private void btnCancle_Click(object sender, EventArgs e) { Form form = new frmLogin(); form.Show(); this.Close(); }