469,072 Members | 1,849 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,072 developers. It's quick & easy.

Environment.ExitCode

1
Good Afternoon,

I have a Windows form that is kept invisible and used in a batch process. If I encounter and error I set the Environment.ExitCode to a non-zero value. I found that the value does not display in my Output Window during debugging. I use 'End' to terminate the process when a non-zero Environment.ExitCode exists.

Second, when I change the code so 'End' is not used and 'Exit Sub' is used in the 'Load' subroutine of the form, the form displays and on closing the form the correct error code displays in the Output Window. Is there a method for assuring the exit code is passed back to the operating system when the form is not visible?

Take Care,
Dave
Oct 2 '07 #1
0 1061

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Dan McGuffin | last post: by
19 posts views Thread by Vijay Kumar R Zanvar | last post: by
6 posts views Thread by Zeya | last post: by
4 posts views Thread by Andy | last post: by
2 posts views Thread by SMichal | last post: by
2 posts views Thread by MikeS | last post: by
2 posts views Thread by =?Utf-8?B?U3RldmVU?= | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.