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:
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:
Kod:
Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);