How can I resize the height of a textbox? I know that you can do it by setting the multiline to true but whenever the text reaches the right edge it will make a new line. I just want to make a large textbox and behaves just like a normal textbox, which is not a multiline behavior.

Recommended Answers

All 3 Replies

You can't.
If you set the height of the font property, the textbox will adjust its height accordingly.

commented: Great minds think alike :) +1
commented: tnx +1

The height of a textbox is based on the font size. Other than making it multiline you don't get to adjust it. You might be able to do it at runtime but the designer won't let you.

commented: tnx +1

thanks for clearing this up.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.