Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all i need help on closing a form
\this.close(); - only hides the form
i want it 2 close it completely i remember it was something like
this.aplication.close(); something like that?
Posted
Comments
Praveen Kumar Upadhyay 24-Jul-15 4:19am    
this.close() will close the form. this.hide() to hide the form object. Please mention your code and problem.
jamesmc1535 24-Jul-15 4:21am    
Application.Exit(); found the one i was looking for , the thing with this.close(); it doesnt close the application it closes the form

1 solution

If you mean to close the entire application, then you probably need
C#
Application.Exit();

otherwise closing a form is done with
C#
this.Close();
 
Share this answer
 
Comments
jamesmc1535 24-Jul-15 4:21am    
thanks buddy , Application.Exit(); this was the one im looking for xD i remember application- lol -
jamesmc1535 24-Jul-15 4:26am    
i tried Application.Close(); lol close enuff i guess
Praveen Kumar Upadhyay 24-Jul-15 5:08am    
Perfect guess.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900