I’m using Control.PreferredSize in order to determine what the ScrollableControl.AutoScrollMinSize should be for a Form. This will need to be set whenever the control’s PreferredSize property changes, but there doesn’t appear to be a Control.PreferredSizeChanged event. Is there a way to detect when this property changes (possibly using Control.WndProc)? I would prefer to avoid polling the property if it can be avoided.
I’m using Control.PreferredSize in order to determine what the ScrollableControl.AutoScrollMinSize should be for a
Share
You can override OnLayout or OnPaint.
PreferredSize is calculated on every call.