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
Explain about jagged arrarys ?
What is sealed class?
Explain namespace?
How vb implements the disconnected architecture as like vb.net?
What do you understand by vb.net?
What is break mode? What are the options to step through code?
what is commom language runtime?
Explain clr?
Explain code security?
Explain the use of serialization and deserialization?
Explain cls?
Explain about Visual basic.NET culture?
What is a literal control?
What is the use of console application?
Define serialization in .net?