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

Exercise 8

This Visual Basic code handles the click event of a button to calculate the board feet of lumber based on thickness, length, and width values entered into text boxes. It takes the input values, performs the board feet calculation formula, and displays the lumber type and calculated board feet value in a label.

Uploaded by

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

Exercise 8

This Visual Basic code handles the click event of a button to calculate the board feet of lumber based on thickness, length, and width values entered into text boxes. It takes the input values, performs the board feet calculation formula, and displays the lumber type and calculated board feet value in a label.

Uploaded by

api-308657631
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
Dim thick As Integer = TextBox1.Text
Dim length As Integer = TextBox2.Text
Dim width As Integer = TextBox3.Text
Dim answer As Integer = ((thick * (length * width) * length) / (width * length * thick))
Label4.Text = "Type: Lumber" + vbNewLine + "Board Feet: " + answer.ToString

End Sub

End Class

You might also like