private void frmMain_Shown(object sender, EventArgs e) { //Set up the main form Boolean blnLoginSuccess = false; Boolean blnLoginError = false; frmLogin frmLogin = new frmLogin(); // Create the Login Dialog do { blnLoginError = false; //Reset frmLogin.ShowDialog(this); // Show the Login dialog // Remainder deals with return values.Any suggestions would be appreciated.