C
C#16mo 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
SoundOP16mo 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
SinFluxx16mo ago
I believe you can set AutoSize = true
Will
Will16mo ago
Multiline = true as well?
Sound
SoundOP16mo ago
autisize from the text box?
FestivalDelGelato
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
SoundOP16mo ago
the panels are docked to top, and the textboxes are on fill
FestivalDelGelato
so what could you want more
Will
Will16mo 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
Accord15mo 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.

Did you find this page helpful?