Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
if i show child form in tabpage at runtime in mdiparent form.then how i can close tabpage of mdiparent form from child form Closed_event.
Posted

1 solution

When you open the child form from the parent, you add an event handler to listen to the childforms closed event.

When that is fired, you use tabControl.TabPages.Remove(childFormTabPage) to remove the tab page.

That's as close as I can get without knowing more about your code.
 
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