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._drCurre ntUser = DalMan._dtUsers .FindByUserName ("Init");
if (DalMan._drCurr entUser == null)
{
MessageBox.Show ("Unable to initialize. Please contact your
administrator." ,"Initializatio n
Error",System.W indows.Forms.Me ssageBoxButtons .OK,System.Wind ows.Forms.Messa geBoxIcon.Stop) ;
SplashScreen.Cl oseForm();
this.Close();
this.Dispose();
}