views:

104

answers:

1

I have a base form with two buttons (e.g. OK and Cancel). I want to use a TableLayoutPanel and have the two buttons in it. Child forms should be able to add more controls to the table as well as modify its layout itself via the designer.

So far I can't get this to work. I have tried the following:

  • Adding the TableLayoutPanel to the child form. Designer refuses to add the two buttons to the panel.
  • Adding the TableLayoutPanel in the base form. Can't add controls to the panel from the child form.
+1  A: 

In the base form you have to set the property Modifiers = Protected for the TableLayoutPanel and any other control you want to change in the child forms.

Argons
nope, doesn't work.
Johannes Rudolph