Thanks for your post.
Application.Exit() and Environment.Exit() all could implement this. There are also some differences between them. For more information, you could read this link:
(Application.Exit vs. Environment.Exit)
Hope it helps.
based on your other thread I assume you mean VB6
see here for that
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?