So i want to close the app without the X button but it doesn't work i tried
X
Close();
Enviroment.Exit(0);
Application.Exit();
Application.ExitThread();
but none of them work.
It isn't running. and it was in the wrong function.