Form Resizing

Lenin82

Member
Joined
Jun 20, 2003
Messages
6
Hi, am very new to programming in general, Im just wondering, how can I resize controls in my form, like a textbox or a drop down menu, or anything else for that matter. Thanx For any infi that may be given :)
 
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        TextBox1.Size = New Size(10000, 10) ///Width then Height
    End Sub
that would make a very long textbox.
 
hmmm oops, sorry bout that I didnt make myself clear. I think I forgot one important part, I wanted to resize it as the actual form resized, like when you maximize the form, have the text boxes resize as well, but thanx for the info dynamic, that will prolly come in handy as well :)
 
In the forms designer if you select a control and look for the properties Anchor and Dock - not the most powerful but can make resizing logic quite easy.
 
Back
Top