Search code examples
c#winformsflowlayoutpanel

C# WinForms FlowLayoutPanel locking child controls


I have a base form containing some elements like this:
- pnlSearch of type Panel: search button
- pnlActions of type FlowLayoutPanel: add, edit, delete, export.. etc buttons

nothing is locked, both panels' modifiers are Private & buttons' modifiers are Protected

FlowLayoutPanel is used to customize options in the child forms (e.g. removing the delete option) without leaving empty spaces since the elements will flow accordingly.

In a child form, the search button only is accessible. Buttons in pnlActions are locked in the designer but by checking the properties Locked = False and Modifiers= Protected

Tried setting the pnlActions' modifiers to Protected but it's still the same.

Any idea what's causing this behavior?
what's the difference between Panel and FlowLayoutPanel other than inner controls layout?
I'd post code samples if I've hand-coded anything but it's all generated by designer

I'm using VS 2013 on Win7 if that would matter
Thanks in advance


Solution

  • this is a problem of the Designer. if you do your changes via code all work... The problem won't be resolved because the platform is not mainteined by Microsoft anymore.