You are on page 1of 1

Exercise 10

Public Class Form1


Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ExitToolStripMenuItem.Click
Application.Exit()
End Sub
Private Sub TopRightToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TopRightToolStripMenuItem.Click
Label1.Location = New Point(180, 30)
End Sub
Private Sub TopLeftToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TopLeftToolStripMenuItem.Click
Label1.Location = New Point(16, 30)
End Sub
Private Sub TopCenterToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TopCenterToolStripMenuItem.Click
Label1.Location = New Point(105, 30)
End Sub
Private Sub MiddleLeftToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MiddleLeftToolStripMenuItem.Click
Label1.Location = New Point(180, 120)
End Sub
Private Sub MiddlecenterToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MiddlecenterToolStripMenuItem.Click
Label1.Location = New Point(105, 120)
End Sub
Private Sub MIddleRightToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MIddleRightToolStripMenuItem.Click
Label1.Location = New Point(16, 120)
End Sub
Private Sub BottomLeftToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BottomLeftToolStripMenuItem.Click
Label1.Location = New Point(16, 220)
End Sub
Private Sub BottomCenterToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BottomCenterToolStripMenuItem.Click
Label1.Location = New Point(105, 220)
End Sub
Private Sub BottomRightToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BottomRightToolStripMenuItem.Click
Label1.Location = New Point(180, 220)
End Sub
End Class

You might also like