Change the Textbox height?

后端 未结 21 2245
心在旅途
心在旅途 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 07:55

    Try the following :)

            textBox1.Multiline = true;
            textBox1.Height = 100;
            textBox1.Width = 173;
    

提交回复
热议问题