vb.net, app runs Sub Main()
want to exit app from Sub Main with exit code
have tried
Environment.ExitCode = 1
Environment.Exit()
and
Environment.ExitCode = 1
Environment.Exit(1)
and
Application.Exit() doesnt even exit the app!!!
all of the above still return an error code on 0 in the dev environment and if i start the exe from dos and return %errorlevel%...what am i doing wrong? please
regards,
richard
want to exit app from Sub Main with exit code
have tried
Environment.ExitCode = 1
Environment.Exit()
and
Environment.ExitCode = 1
Environment.Exit(1)
and
Application.Exit() doesnt even exit the app!!!
all of the above still return an error code on 0 in the dev environment and if i start the exe from dos and return %errorlevel%...what am i doing wrong? please
regards,
richard