Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to get sum of two numbers in vb.net?

Answer Posted / philip mahama

You need to create a new project and add two text-box, the first textbox, one label
Which name should be changed to sumlabel and a button for the calculation

Then double click on the button and add this code.

Dim num1, num2, sum as double

‘ Initialize sum to zero
Sum = 0

num1=double.parse(Textbox1.text)
num2=double.parse(Textbox2.text)

‘Calculate sum
Sum = num1 + num2

‘Print sum
Sumlabel.text = sum

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by Redim in VB.NET?

1155


What is the difference between import system.data.sqlclient and system.data.oledb?

932


What is the size of .net object?

1023


What is the Advantage of vb.net over vb

992


What are the shadow variables?

1050


Explain namespace?

1096


What is option strict?

1042


How to achieve Polymorphism in VB.Net?

1063


Why do you need Lock in Visual Basic?

1082


Can you please explain the difference between value and reference types?

919


Explain an assembly?

959


Explain strong name in .net assembly?

969


Explain manifest?

924


How can we remove handlers at run time?

1054


Explain and brief about rapid application development tool?

1003