| Author: Satish N Raykar 24 Nov 2008 | Member Level: Bronze | Rating:  Points: 5 |
Use the below code in the main form, this will cal the login form, after clicking OK buttonlogin form will be closed automatically.
frmLogin login = new frmLogin(); login.ShowDialog(); if (login.DialogResult == DialogResult.OK) { Application.EnableVisualStyles(); Application.Run(new frmMain());
}
Regards, SN Raykar
|