Search code examples
c#winforms.net-framework-version

a dot net framework windows forms app not exiting using `Close();` or other functions


So i want to close the app without the X button but it doesn't work i tried

Close();
Enviroment.Exit(0);
Application.Exit();
Application.ExitThread();

but none of them work.


Solution

  • It isn't running. and it was in the wrong function.