Change the Textbox height?

后端 未结 21 2199
心在旅途
心在旅途 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

    Just found a great little trick to setting a custom height to a textbox.

    In the designer view, set the minimumSize to whatever you desire, and then completely remove the size setting. This will cause the designer to update with the new minimum settings!

提交回复
热议问题