Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

AutoSize doesn't work if Control.Size < Control.MinimumSize

$
0
0

I have a FlowLayoutPanel docked to the top of a Form. The AutoSize Property of the panel is set to true so that the height of the panel is only as big as it needs to show the contained controls.

If I programmatically set the Size of the form to a value smaller than the form's MinimumSize, the form's Size is set to the value of MinimumSize, as expected, but the panel remains smaller, at the size it should be if the MinimumSize of the form was Size.Empty.

Does anybody know what Im doing wrong?


https://fraktalysator.codeplex.com/


Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>