Exercise 1-2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Exercise #1

Tristan Zarin
Public Class Form1
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Label1.Text = "Tristan Zarin"
Label2.Text = "Surrey"
Label3.Text = "British Columbia"
End Sub
End Class

Exercise #2
Public Class Form1
Private Sub ProgramToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ProgramToolStripMenuItem.Click
Application.Exit()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Label1.Text = "Lord Tweedsmuir Secondary"
Label2.Text = "Lord Tweedsmuir Panthers"
End Sub
End Class

You might also like