answersLogoWhite

0

Option Explicit

Dim a as integer

Dim b as integer

Dim c as integer

Dim result as integer

a=val(text1.text)

b=val(text2.text)

c=val(text3.text)

result=a+b+c

'now we want to push the result to another text box ,below code insert into the button click event

text4.text=result

text1.text=""

text2.text=""

text3.text=""

Rename the cmd button

As sum.

And run the program by pressing F5 key.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
More answers

using class

shared sub main()

dim s as integer=10

dim g as integer=20

system.console.writeline(s+g)

end sub

end class

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Program to find sum of two numbers in VB.NET language?
Write your answer...
Submit
Still have questions?
magnify glass
imp