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
Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?
What is branching logic control in VB.NET?
Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.
Can you please explain the difference between thread and process?
What is stack used for in vb. Net?
described weak typing?
Allowed program to auto-correct the database when loading a presentation.
What are the features present in vb 2005?
Why is the xml infoset specification different from the xml dom?
Is vb net a scripting language?
What is code access security?
Why do we use ansi keyword?
What does assert() method do In VB.NET
What are the advantages of an assembly?
Explain convert.tostrin?