How to increase textbox height without Multiline = "true" or increase font size?

I need to adjust the height of the text box so that it is suitable for the touch screen.

I understand that people recommend Multiline = "true" , but if I do, the text inside the field is justified at the top, which is not suitable for my application.

I tried to adjust the font size, but the size should be ridiculous to fit the height for my need.

Is there any other way to increase the height of the text box?

+7
source share
2 answers

Try the following:

 textBox1.AutoSize = false; 

It will not appear in intellisense, but it will work.

To work with a designer, you need to create your own TextBox:

 public class TextBoxEx : TextBox { public TextBoxEx() { this.AutoSize = false; } } 
+8
source

Trick Settings:

  • Set multi-line = true
  • No need to change the font size.
  • change the maximum length. so it should not be on the next line.
0
source

All Articles