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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
63 views
Exercise 2
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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
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 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