Go to navigation
last updated –
posted 2008-Jul-25, 10:58 pm AEST
posted 2008-Jul-25, 10:58 pm AEST
User #196035   325 posts
Forum Regular
reference: whrl.pl/RbAVDJ
posted 2008-Jul-25, 8:32 pm AEST
posted 2008-Jul-25, 8:32 pm AEST
O.P.

Hey everyone.

I've just started learning about Visual Basic and i am trying to create a simple app that will add two numbers.

I 'vedesigned the UI and it simply has two textboxes for a user to put in their specified numbers and a third textbox to display the answer.

I have tried googling this for hours and i am stumped. Can someone please help me out?

User #4724   109 posts
Forum Regular
reference: whrl.pl/RbAVFq
posted 2008-Jul-25, 8:43 pm AEST
posted 2008-Jul-25, 8:43 pm AEST

acmilantim,

Put a button control on the form and double clickit to get the code page.
you could try :

textbox3.text = val(textbox1.text) + val(textbox2.text)

User #41085   10054 posts
Whirlpool Forums Addict
reference: whrl.pl/RbAVM2
posted 2008-Jul-25, 9:33 pm AEST
posted 2008-Jul-25, 9:33 pm AEST

Just for some general learning material, have a look here. Step by step video tutorials:

http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx

User #196035   325 posts
Forum Regular
reference: whrl.pl/RbAV1Y
posted 2008-Jul-25, 10:49 pm AEST
posted 2008-Jul-25, 10:49 pm AEST
O.P.

OMG i did it! Yay! Lol thanks for the help! Is it the same for multiplication with obvious changes e.g. a * instead of a +?

User #44690   24996 posts
Whirlpool Forums Addict
reference: whrl.pl/RbAV3k
posted 2008-Jul-25, 10:58 pm AEST
posted 2008-Jul-25, 10:58 pm AEST

acmilantim writes...

OMG i did it! Yay! Lol thanks for the help! Is it the same for multiplication with obvious changes e.g. a * instead of a +?

Rather than asking, how about you simply test it?

Programming's all about finding things out for yourself.