Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
If i have a tabControl contains 3 tab pages and i disposed tabpage3, can i re-add it with it's content (not to add empty tabpage) ?
Posted

1 solution

No.
Once you Dispose on object you will get an error if you attempt to re-use it as it's resources have been released.

You can create a new instance of the page and add that though.
 
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