Link to home
Start Free TrialLog in
Avatar of gvector1
gvector1

asked on

Early Exit

I am sure this is a simple question that I cannot find the solution to.  I have an application that within a method, it checks a property.  Based on that property I either continue with the application of need to exit the application.  I have tried Application.Exit() and ExitThread(), and each one continues on with the code after the Exit method.  I am needing to halt all code continuation because the application will crash if it does continue.  How can I immediately exit the application without crashing it?????

Thanks,
Kendal
ASKER CERTIFIED SOLUTION
Avatar of dttri
dttri
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial