Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

how to terminate an application (VB.net)

hi all,
i am trying to terminate a custom application in case an error occurs. how can i do that? i already tried an Application.Exit command embedded in the catch block but this doesnt work.
thanks for tips,
Arne.
[236 byte] By [arneberg] at [2007-11-11 8:01:35]
# 1 Re: how to terminate an application (VB.net)
If it's a Windows Forms app, unload the app's main form.
Phil Weber at 2007-11-11 17:26:11 >
# 2 Re: how to terminate an application (VB.net)
If you are trying to end your own program, the easiest way is "End" (no quotes, of course) or you can use "me.close" if the code is executed from the startup form.

-Ray Phillips
RayPhillips at 2007-11-11 17:27:11 >
# 3 Re: how to terminate an application (VB.net)
Hello guys,

I'm trying to exit an application but I want to keep the info that I sent to the clipboard before quiting. How can I do that? (me.close or End clears the clipboard and I get nothing once my little application closes).

Thank you for your help!!
jddk23 at 2007-11-11 17:28:09 >