How do I...?

Close My Application Immediately

Normally to close your application, you should use the Application.Exit() action. However, if you require your application to terminate immediately, instead of using Application.Exit(), use the following code:

Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);