Answers for "protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); }"

C#
1

protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); }

Put this code at the end of your Main() method:

Environment.Exit(Environment.ExitCode);
Posted by: Guest on July-08-2021

Code answers related to "protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); }"

C# Answers by Framework

Browse Popular Code Answers by Language