Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have 2 windows form in windows application.

both form has formclosing event.

When i am opening a second from from first form after clicking next button. Now after opening second form i am getting first form close event message box message.

The first form close event i am showing message box. the same message box i am getting after opening a second form.

Why i am getting this. Please help me

Thanks
Posted
Comments
Valery Possoz 14-Dec-11 6:28am    
Could you show us some code please?

1 solution

Probably you're just closing the first form in your code. Using debugger, place a breakpoint to the first forms close event and use the debugger and/or stack trace to find out where the close is coming from.
 
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