Autoresize textbox control vertically

Posted by andrew on Stack Overflow See other posts from Stack Overflow or by andrew
Published on 2010-05-23T19:14:33Z Indexed on 2010/05/23 19:20 UTC
Read the original article Hit count: 428

Filed under:
|
|

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 need to scroll the textbox (scroll the panel at most, if there is more text that doesn't fit the panel). is there any way to do this with a textbox? (i'm not constrained to use this control so if there's another control that fits the description, feel free to mention it)

© Stack Overflow or respective owner

Related posts about c#

Related posts about textbox