Tuesday, December 11, 2007

How to size your form during Runtime

How to size your form during Runtime

Step 1

To size your form during runtime, all you need to do is use its Width() and Height() method to do it.

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim f2 As New Form2()

f2.Width = 200

f2.Height = 80

f2.Show()

End Sub

No comments: