Showing posts with label product of two numbers in vb.net. Show all posts
Showing posts with label product of two numbers in vb.net. Show all posts

Sunday, December 11, 2016

Product of Two Numbers Using Visual Basic NET

Here is a simple program that I wrote that will ask the user to give a  number and then our program will find the product of the numbers using Visual Basic NET. The code is very easy to understand and use.

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.





Program Sample Output


Program Listing

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim product As Integer
        product = Val(TextBox1.Text) * Val(TextBox2.Text)
        Label3.Text = "The Product of " & TextBox1.Text & " and " & TextBox2.Text & _
                      " is " & product & "."
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        End
    End Sub

End Class