0% found this document useful (0 votes)
27 views2 pages

3.textbox 2. Button 2 Groupbox 3.label 7radio Button

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.

Uploaded by

freda mendez
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
27 views2 pages

3.textbox 2. Button 2 Groupbox 3.label 7radio Button

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.

Uploaded by

freda mendez
Copyright
© © All Rights Reserved
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/ 2

3.

TextBox
2. Button
2 GroupBox
3.Label
7Radio button

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

You might also like