Maligayang pagdating sa IDNStudy.com, ang iyong platform para sa lahat ng iyong katanungan! Sumali sa aming platform upang makatanggap ng mabilis at eksaktong tugon mula sa mga propesyonal sa iba't ibang larangan.
Sagot :
These are the basic codes for that... And below is the attached file of the UI of this program.
CODES//
Public Class CALCULATOR
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 + num2
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 - num2
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 * num2
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 / num2
End Sub End Class
CODES//
Public Class CALCULATOR
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 + num2
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 - num2
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 * num2
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim num1, num2, answer As Integer
num1 = TextBox1.Text
num2 = TextBox2.Text
TextBox3.Text = num1 / num2
End Sub End Class
Salamat sa iyong kontribusyon. Huwag kalimutang bumalik at magtanong ng mga bagong bagay. Sama-sama tayong lumikha ng isang mas matibay na samahan. Umaasa kami na natagpuan mo ang hinahanap mo sa IDNStudy.com. Bumalik ka para sa mas maraming solusyon!