© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
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 🤔
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Having trouble understanding patterns
C#CC# / help
3y ago
I'm having trouble understanding Bubble Sort.
C#CC# / help
3y ago
❔ I'm having trouble with my assigment and I need help understanding
C#CC# / help
3y ago
✅ I'm having trouble understanding what is going on within this selection search
C#CC# / help
4y ago