Does' anyone know how to have say a form that is like 15cm x 15cm, then you press a command button or something along those line's then it goes to 20cm x 20cm?
Printable View
Does' anyone know how to have say a form that is like 15cm x 15cm, then you press a command button or something along those line's then it goes to 20cm x 20cm?
This is actually really simple, i made a simple program so u can see what i did.
http://i51.photobucket.com/albums/f3...kkos/form1.jpg
If u cant see the pic, i just created a form with a button named changeSizeButton and when u click it, the form changes from 300 to 400.
'Programmed by: Benjamin Fekkos
'Date: November, 5 2007
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles changeSizeButton.Click
'This just changes the height and width to the size i purposed
'when the button is clicked
Me.Height = 400
Me.Width = 400
End Sub
End Class
Cool Thankyou, and it work's.
Another question sorry, do you know how to click the same button to go back to it's original size?