Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to exit from the new window to the previous window when click on a exit button.


I wrote the code as follows


NewComponentSalary ncs1 = new NewComponentSalary();

ncs1.Close();


NewComponentSalary is my window name.

But it doesn't working
Anyone knows.........
Posted

1 solution

Call this.close() in your new window.
See here[^].
 
Share this answer
 

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