This Visual Basic code defines a form with three labels and a button. When the form loads, no action is taken. When the button is clicked, it sets the text of each label to a different string - Label1 to "Jacob Schantli", Label2 to "Surrey", and Label3 to "British Columbia".
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)
68 views1 page
Exercise 1
This Visual Basic code defines a form with three labels and a button. When the form loads, no action is taken. When the button is clicked, it sets the text of each label to a different string - Label1 to "Jacob Schantli", Label2 to "Surrey", and Label3 to "British Columbia".
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 Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = "Jacob Schantli" Label2.Text = "Surrey" Label3.Text = "British Columbia" End Sub End Class