Change the Textbox height?

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

    Steps:

    1. Set the textboxes to multiline
    2. Change the height
    3. Change the font size. (so it fit into the big textboxes)
    4. Set the textboxes back to non-multiline

提交回复
热议问题