equivalent of the VB6 ExitProcess in vb.net

G

Guest

Hi

I need to convert a VB6 console application. In this application, when a error is detected, the process is terminated with the command : "ExitProcess 99"

How I can do that with vb.net. I know that I can use "System.Diagnostics.Process.GetCurrentProcess.CloseMainWindow" but I am unable send the return code "99"

Thank for you'r help

Éric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top