How can I increase height of a textbox without Multiline = "true" or incrementing font size?
c#, textbox, winforms
Solution
Try this:
textBox1.AutoSize = false;
It won't show up in the intellisense, but it will work.
To have it work with the designer, you would have to make your own TextBox:
public class TextBoxEx : TextBox {
public TextBoxEx() {
this.AutoSize = false;
}
}
Problem
I need to adjust height of the textbox so it is suitable for touchscreen. I understand people recommend `Multiline = "true"` but if I do that, text inside of the box is justified with top which is not proper in my application. I tried to adjust font size, but the size should be ridiculously huge to fit the height for my need. Is there any other way to increase the height of textbox?