The document describes a program with 3 text boxes, 2 buttons, 2 group boxes, 3 labels, and 7 radio buttons. When each radio button is checked, it performs a different mathematical operation (addition, subtraction, multiplication, division, exponentiation, percentage, square root) on the values in text boxes 1 and 2, and displays the result in text box 3. One button clears the text boxes, and the other button ends the program.
The document describes a program with 3 text boxes, 2 buttons, 2 group boxes, 3 labels, and 7 radio buttons. When each radio button is checked, it performs a different mathematical operation (addition, subtraction, multiplication, division, exponentiation, percentage, square root) on the values in text boxes 1 and 2, and displays the result in text box 3. One button clears the text boxes, and the other button ends the program.
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged TextBox3.Text = Val(TextBox1.Text) + Val(TextBox2.Text) End Sub Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged TextBox3.Text = Val(TextBox1.Text) - Val(TextBox2.Text) End Sub Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged TextBox3.Text = Val(TextBox1.Text) * Val(TextBox2.Text) End Sub Private Sub RadioButton4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton4.CheckedChanged TextBox3.Text = Val(TextBox1.Text) / Val(TextBox2.Text) End Sub Private Sub RadioButton5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton5.CheckedChanged TextBox3.Text = Val(TextBox1.Text) * Val(TextBox1.Text) * Val(TextBox1.Text) End Sub Private Sub RadioButton6_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton6.CheckedChanged
TextBox3.Text = Val(TextBox1.Text) / 100
End Sub Private Sub RadioButton7_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton7.CheckedChanged TextBox3.Text = Math.Sqrt(TextBox1.Text) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = " " TextBox2.Text = " " TextBox3.Text = " " End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub