Area of Circle

Area Of Circle

This program will find the Area of Circle by entering Radius in the Text box. Two Text box created. One is to enter Radius and another one to display Area of Circle. When user clicks solve button it will display the result. This source code developed using Visual studio 2008 and it works in Visual studio 2012.

Area of Circle

Programming language: Visual studio 2008 (VB.NET)

Download this project source code file:
[wpdm_file id=4]

Download EXE or Setup File:

[wpdm_file id=5]

Source code:

[themepacific_highlight color=”red”][/themepacific_highlight]

Public Class Form1
Private Sub btnSolve_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSolve.Click
Dim area, pi As Double
Dim r As Integer
area = 0.0
pi = 3.1416
r = Convert.ToInt16(txtRadius.Text)
area = 2 * pi * r * r
txtArea.Text = Convert.ToString(area)
End Sub
End Class

Video demonstration:

Anu

Leave a Reply