Hi when I create a textbox on Visual studio on Windows Form Application, I can get the width more than 20 pixels, however I cannot get the height more than 20 pixels.
So how will I be able to resize height?
Hi when I create a textbox on Visual studio on Windows Form Application, I can get the width more than 20 pixels, however I cannot get the height more than 20 pixels.
So how will I be able to resize height?
Set the Multiline
property to true
in the designer, then you will be able to resize the textbox.
You can set Multiline = true
, I can change the height
portion of the Size
property and the change sticks. The display area of the Textbox
auto-sizes to the font selected, so you can set the higher font size to increase the size of the textbox, but you are not intend to it.
Multiline = true In this mode the height of the text box can be of any value thus allowing different number of rows in it.
Ref:
How-To set Height of a Textbox?
TextBox cannot adjust height size
Edit: You can customize the TextBox also.