A simple program that I wrote using VB.NET to ask the user to give three numbers and then the program will allow the user to compute the sum of the three numbers.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs)
MessageBox.Show("Addition of two Numbers")
End Sub
Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox1.Focus()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Me.Close()
End Sub
End Class
No comments:
Post a Comment