Friday, November 19, 2021

Area of the Circle Using Functions in VB.NET

 A simple program to compute the are of the circle using functions in Microsoft Visual Basic NET.

 I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.






Program Listing

Public Class Form1


    Dim area As Double

    Function Solve_Area(ByVal radius As Double) As Double


        radius = Single.Parse(Val(TextBox1.Text))


        area = Math.Round(3.14F * radius * radius, 2)


        Return area

    End Function


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        TextBox2.Text = Solve_Area(Val(TextBox1.Text))

    End Sub


    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

        End

    End Sub


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

        TextBox1.Text = ""

        TextBox2.Text = ""

        TextBox1.Focus()

    End Sub

End Class


No comments:

Post a Comment