C#C
C#3y ago
Conner

❔ I have trouble understanding AutoSize

Winforms
There is an AutoSize property on most containers, the documentation says that it will make the container automatically fit its contents.
However to me it seems that it just works arbitrarily.
My layout of my control is as follows:
  • User Control
    • Docked Panel
      • Text Box
      • Another Docked Panel
Both the first docked panel and the User Control have AutoSize set to true but the control either doesnt resize at all or shrinks down to 1x1 pixel, which I wouldnt really consider to fit my content 🤔
Was this page helpful?