Suriin ang IDNStudy.com para sa mabilis at maaasahang mga solusyon. Alamin ang mga maaasahang sagot sa iyong mga tanong mula sa aming malawak na kaalaman sa mga eksperto.
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
Pinahahalagahan namin ang bawat tanong at sagot na iyong ibinabahagi. Patuloy na magbahagi ng impormasyon at karanasan. Sama-sama tayong magtatagumpay. IDNStudy.com ang iyong mapagkakatiwalaang kasama para sa lahat ng iyong mga katanungan. Bisitahin kami palagi.