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.
Copyright © 2026 eLLeNow.com All Rights Reserved.