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
What do you mean by Redim in VB.NET?
What is the difference between import system.data.sqlclient and system.data.oledb?
What is the size of .net object?
What is the Advantage of vb.net over vb
What are the shadow variables?
Explain namespace?
What is option strict?
How to achieve Polymorphism in VB.Net?
Why do you need Lock in Visual Basic?
Can you please explain the difference between value and reference types?
Explain an assembly?
Explain strong name in .net assembly?
Explain manifest?
How can we remove handlers at run time?
Explain and brief about rapid application development tool?