how to increase textbox size dynamically in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsdeepak
    New Member
    • May 2014
    • 1

    how to increase textbox size dynamically in vb.net

    please suggest me the best answers
  • Luk3r
    Contributor
    • Jan 2014
    • 300

    #2
    We have to enable multiline to be able to change the height of a textbox. If changing the height is not required, omit the first line of code I've provided. Also, TextBox1 should be replaced with the name of your textbox and "500" on the height and width should be replaced with your desired integer.

    Code:
            TextBox1.Multiline = True
            TextBox1.Width = 500
            TextBox1.Height = 500

    Comment

    Working...