C
C#10mo ago
Sound

❔ [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)
No description
9 Replies
Sound
Sound10mo ago
This is a starting layout of the component. It should contain:
Commit: the id of the commit Summary: the commit's summary Description: the description
Summary and Description should scale vertically
SinFluxx
SinFluxx10mo ago
I believe you can set AutoSize = true
Will
Will10mo ago
Multiline = true as well?
Sound
Sound10mo ago
autisize from the text box?
ffmpeg -i me -f null -
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
Sound
Sound10mo ago
the panels are docked to top, and the textboxes are on fill
ffmpeg -i me -f null -
so what could you want more
Will
Will10mo ago
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 ...
Accord
Accord10mo ago
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.