0% found this document useful (0 votes)
85 views

Exercise 16

This code defines a class called Form1 with a private subroutine that handles clicks on a button. When the button is clicked, it takes the text from two text boxes called first and sec, converts them to numbers, multiplies them together, and assigns the result to the text of a label called Label2.

Uploaded by

api-310300017
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views

Exercise 16

This code defines a class called Form1 with a private subroutine that handles clicks on a button. When the button is clicked, it takes the text from two text boxes called first and sec, converts them to numbers, multiplies them together, and assigns the result to the text of a label called Label2.

Uploaded by

api-310300017
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Label2.Text = first.Text * sec.Text
End Sub
End Class

You might also like