C#: Anchored Panel won't resize properly

后端 未结 3 1312
有刺的猬
有刺的猬 2021-02-05 06:10

I\'ve a strange problem regarding auto sizing of a panel in a user control. This panel is anchored to all 4 sides of the user control. But the anchoring not always works as it s

3条回答
  •  醉话见心
    2021-02-05 06:56

    The problem is not the depth of nesting; controls can be nested arbitrarily deep. Anchoring and Docking generally do not play nicely with each other. I usually favor docking over anchoring, but, whichever solution you choose, you should probably avoid mixing them.

提交回复
热议问题