Adding controls to a child control of a UserControl at design time
-
Heres how I arrive at my dilema (a very simplified example): 1. Create a new Window Application Solution. 2. Add to the project a new user control, lets call it UserControl1 3. Add 1 panel to UserControl1, lets call it Panel1. Dock it to the right and size it such that it takes up half of the available real estate. 4. On the main form for the application, place an instance (from the toolbox) of UserControl1 anywhere you like. 5. Now place a button in the panel of UserControl1. Step 5 seems impossible. I would like to create a control type whose purpose is to contain other controls (and other things). But everytime I try and place this control in the Panel, it appears behind the panel. The container for the button is always UserControl1 not Panel1. How can I make the container for the newly placed button be Panel1 and not UserControl1? (Using typical Design View method (drag and drop). Thanks for your time...