❔ [WINFORMS] Make textbox scale vertically according to its content.
I want to make a component for displaying the update log of an app. The update log contains multiple commits with their description and summary. I want to display each commit in its own container, and have a scrollable list of these containers.
I need the textboxes to be able to scale vertically, so their content can fit. (i am using wordwrap)
9 Replies
This is a starting layout of the component. It should contain:
Commit: the id of the commit Summary: the commit's summary Description: the descriptionSummary and Description should scale vertically
I believe you can set AutoSize = true
Multiline = true
as well?autisize from the text box?
i don't think in winforms you can size a control automatically based on content in that way
and honestly it wouldn't make much sense
just make it big as possible with docking
the panels are docked to top, and the textboxes are on fill
so what could you want more
Stack Overflow
Autoresize textbox control vertically
In a C# form, I have a panel anchored all sides, and inside, a textbox, anchored top/left/right.
When text gets loaded into the textbox, i want it to auto expand itself vertically so that I don't ...
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.