Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,
I am creating a user control with 5 panels added programmatically. But when I add a control onto this user control it's not getting added inside those panels. I tried to enable design mode for those panels. But since they are created programmatically the compiler throws an error saying those 5 panels do not exist. How can I enable the design mode for those array of panels?
Posted
Updated 8-Oct-11 14:54pm
v3
Comments
BillWoodruff 8-Oct-11 16:09pm    
If by "programatically" you mean the five panels are added at run-time, in your code, then they will never show up at design time.

Perhaps you mean something else ?
Nueman 8-Oct-11 20:53pm    
Edited for spelling, grammar, capitalization only

1 solution

Did you do add the control to the Forms Controls collection or the Panel? Without seeing your code its all guess work, but I'm betting you added them to the Form, not the Panel.
 
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