Exit a program using a button
-
i would like to know the code for the exit button that i created on the window to close the application. I have tried OnExit() and it works fine when it runs on the pc at home.. but when i run this program and try to press the exit button to terminate the program. it will prompt for some kind of error message tat needs mi to press either "ok" to terminate the program or press "cancel" to debug the program To anyone that could help.. thanks :-O
-
i would like to know the code for the exit button that i created on the window to close the application. I have tried OnExit() and it works fine when it runs on the pc at home.. but when i run this program and try to press the exit button to terminate the program. it will prompt for some kind of error message tat needs mi to press either "ok" to terminate the program or press "cancel" to debug the program To anyone that could help.. thanks :-O
-
i would like to know the code for the exit button that i created on the window to close the application. I have tried OnExit() and it works fine when it runs on the pc at home.. but when i run this program and try to press the exit button to terminate the program. it will prompt for some kind of error message tat needs mi to press either "ok" to terminate the program or press "cancel" to debug the program To anyone that could help.. thanks :-O
-
I don't know exactly you use which .NET application. I show you close a program completly on Visual C++ .NET: You add below code in your button::onClick(..) methot (exit button); Application::Exit();
Hi, I am using Visual C++ for my application but i am not very sure of the code u say. i have a function name: void CProjectGrid::OnExit() { OnExit(); } i tried on the above and it works fine with the pc at home.. but when i run this program in school, it prompt mi for some error. so for the coding that you showed me. Where should i place it in the function above? Thanks for your help :)
-
Hi, I am using Visual C++ for my application but i am not very sure of the code u say. i have a function name: void CProjectGrid::OnExit() { OnExit(); } i tried on the above and it works fine with the pc at home.. but when i run this program in school, it prompt mi for some error. so for the coding that you showed me. Where should i place it in the function above? Thanks for your help :)