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?
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;
}
}
Trick steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With