CT218 lab2

http://www.it.nuigalway.ie/~gettrick/courses/CT218/labs/l2.html


You will be expected to print out and submit your work from today’s lab. To print out: use the Print option from the File menu in VB. You should be able to produce a printed image of your form as well as a printout of your event procedures.




For today’s session, you will be making a "little calculator" application which will allow the user to type in two numbers, and then to either add them, subtract the second from the first, multiply them, or divide the first by the second.




Your application should also provide:


Note:

When adding together the contents of the text boxes, you should use the Val function to convert from strings to numbers. Otherwise, the + operator will simply concatenate the two strings,

i.e. use:

Val(txtNum1.Text) + Val(txtNum2.Text)

rather than:

txtNum1.Text + txtNum2.Text



© NUI, Galway