Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing the height of a TextBox 1

Status
Not open for further replies.

cepacs

Technical User
Jun 3, 2008
32
US
Using VS2005, when I create a textbox, it seems to automatically size the height to 20 and if I change the number to 24, it goes back to 20 when I hit enter. I can change the width, just not the height. I assume it inherits this value, but I can't figure out how to change it. I wouldn't mind having a consistent height within the form, I just want to choose the height. I would like to learn how to do this within the GUI, not just by adding something like "textbox.AutoSize = false;" to the code. How would I do this?

Thanks in advance!
 
It appears the height is determined by the text box's font size. Would setting the Multiline property to True be an acceptable workaround?
 
Thanks Dave! Clicked on the little arrow on the upper right of the text box and checked MultiLine. Works perfect!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top