57Visual Programming
Task 1: Form Height & WidthDescription:
In this program, there are total four buttons: Increase height & width, decrease height& width. By clicking any of the buttons, it performs that task of increasing decreasing height &width of the form.
Coding:
Public Class Form1
Private SubButton1_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)
HandlesButton1.Click Me.Height =Me.Height + 500
End Sub
Private SubButton2_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)
HandlesButton2.Click Me.Height =Me.Height - 500
End Sub
Private SubButton3_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)
HandlesButton3.Click Me.Width =Me.Width + 500
End Sub
Private SubButton4_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)
HandlesButton4.Click Me.Width =Me.Width - 500
End Sub
End Class