Does anyone know what the C# equivalent for VB6 End is?
I'm starting up a form with a boolean test. If I fail, I just want to
end the app. Even though I close the form, it picks up on the line
after the bracket and continues loading the form.
Here's my snippet:
DalMan._drCurrentUser = DalMan._dtUsers.FindByUserName("Init");
if (DalMan._drCurrentUser == null)
{
MessageBox.Show("Unable to initialize. Please contact your
administrator.","Initialization
Error",System.Windows.Forms.MessageBoxButtons.OK,S ystem.Windows.Forms.MessageBoxIcon.Stop);
SplashScreen.CloseForm();
this.Close();
this.Dispose();
}