❔ 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 🤔
- 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 🤔
3 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.