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
How many ways the function can return values?
Is it necessary to have SQL server installed in your computer in order to create a service based database in vb.net?
What is stack used for in vb. Net?
What is the use of assembly?
What is the maximum size of the textbox?
When do you use virutal keyword?
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.
difference between checkbox vs radiobutton??
What are the different types of Lock available in Visual Basic?
Why is the xml infoset specification different from the xml dom?
What is the difference between import system.data.sqlclient and system.data.oledb?
Explain and brief about rapid application development tool?
What is different between web.config and machine.config and where it will be ?
Explain about rapid application development tool?
Can you please explain the difference between vb and vb.net?