This code defines a class called Form1 that contains an integer variable called Temp. It also defines a click event handler for a button that assigns the text from another control called ToolBoxTemp to Temp. It then calculates the Celsius temperature equivalent of Temp by applying the formula of 5/9 * (Temp - 32) and assigns the result to the text of a label called Label3.
This code defines a class called Form1 that contains an integer variable called Temp. It also defines a click event handler for a button that assigns the text from another control called ToolBoxTemp to Temp. It then calculates the Celsius temperature equivalent of Temp by applying the formula of 5/9 * (Temp - 32) and assigns the result to the text of a label called Label3.
This code defines a class called Form1 that contains an integer variable called Temp. It also defines a click event handler for a button that assigns the text from another control called ToolBoxTemp to Temp. It then calculates the Celsius temperature equivalent of Temp by applying the formula of 5/9 * (Temp - 32) and assigns the result to the text of a label called Label3.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Temp = ToolBoxTemp.Text Label3.Text = 5 / 9 * (Temp - 32) End Sub