This Visual Basic code defines event handlers for a form. It contains a handler for a menu item click that exits the application and a button click handler that sets the text of two labels to "Lord Tweedsmuir" and "Black Panther" respectively.
This Visual Basic code defines event handlers for a form. It contains a handler for a menu item click that exits the application and a button click handler that sets the text of two labels to "Lord Tweedsmuir" and "Black Panther" respectively.
This Visual Basic code defines event handlers for a form. It contains a handler for a menu item click that exits the application and a button click handler that sets the text of two labels to "Lord Tweedsmuir" and "Black Panther" respectively.
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ExitToolStripMenuItem.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" Label2.Text = "Black Panther" End Sub End Class