I have a user control that has: a) a panel of buttons at the top (it should always be visible) b) a panel with controls that are dynamically added and changed at runtime. There can be many controls, so the panel must be scrollable.
This user control will be placed on the form with the following requirements: a) The original size of the form will try to fit the maximum portion of the dynamic content. b) When changing the size of the form, the control should be accordingly changed.
I played with various mounts, docking and auto-calibration, and I don’t quite understand how it works. Sometimes it scrolls, sometimes it is something else.
What combination of binding, docking and auto-size of panels, user control, form should work best to achieve the desired result?
source
share