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 do you retrieve the customized properties of a .net application from xml .config file?
How a base class method is hidden?
Explain the advantages of migrating to vb.net?
what is difference between web.config and machine.config and where it will be ?
What is the significance of delegates. Where should they be used? What are the situations where we require them?
What is stack used for in vb. Net?
What is strong typing and weak typing?
Which control is an example of an object in vb net?
Name the tool which can convert visual basic old version to .net compatibility version?
What are all the parts of .net framework?
what is common type system?
Explain the difference between c# and vb.net?
What are the types of generations in garbage collector?
What do you mean by serialization and deserialization and it's use.
what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.