Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to change the panel control inside a tab page with another panel control .. how to catch (get) the panel in the tab page ?
Posted

1 solution

All content controls have a Controls property, you can add/remove items on it by index or control name as tabpage.Controls["panelName"]
 
Share this answer
 
Comments
Hend Riad 15-Feb-13 12:32pm    
But it can't be used in exchanging controls because it's a read only property, i can't replace a control by another via assignment operator.
sbromanv 15-Feb-13 12:36pm    
clear the collection and repopuled it withs the controls on the other, the Controls porpertiy has a clear,add and copyTo method

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