Change the Textbox height?

后端 未结 21 2217
心在旅途
心在旅途 2020-12-09 07:24

How do I change the height of a textbox ?

Neither of the below work:

this.TextBox1.Size = new System.Drawing.Size(173, 100);
         


        
21条回答
  •  天命终不由人
    2020-12-09 08:11

    There are two ways to do this :

    • Set the textbox's "multiline" property to true, in this case you don't want to do it so;
    • Set a bigger font size to the textbox

    I believe it is the only ways to do it; the bigger font size should automatically fit with the textbox

提交回复
热议问题