C
C#14mo 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
SoundOP14mo 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
SinFluxx14mo ago
I believe you can set AutoSize = true
Will
Will14mo ago
Multiline = true as well?
Sound
SoundOP14mo ago
autisize from the text box?
Omnissiah
Omnissiah14mo ago
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
SoundOP14mo ago
the panels are docked to top, and the textboxes are on fill
Omnissiah
Omnissiah14mo ago
so what could you want more
Will
Will14mo 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
Accord14mo 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.
Want results from more Discord servers?
Add your server