VP Exercise 3 Part 2

calculator ----(exit button)---private sub button16_click(byval sender as system.object, byval e as system.

eventargs) handles button16.click close() end sub ----(magic button)-----private sub button15_click(byval sender as system.object, byval e as system.eventargs) handles button15.click dim s as string textbox1.text = "uto-uto!!" end sub --------(clear button)-----------private sub button17_click(byval sender as system.object, byval e as system.eventargs) handles button17.click dim s as string textbox1.text = "" end sub end class -----(1 to 0 button)------private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click textbox1.text = textbox1.text & (no.) end sub end class ---------(= sign button)------------

//new dim dim dim dim sum as integer = 0 pro as integer = 1 p as boolean = false value as integer = 0

------function return value() as integer textbox1.text = value end function (button 1)----------if p then textbox1.clear() p = false end if textbox1.text &= 1

end sub (button 2)-----------------if p then textbox1.clear() p = false end if textbox1.text &= 1 end sub -----(+ sign)-------private sub.... sum += val(textbox1.text) textbox1.text = sum prod = 1 p = true end sub ----(* sign)----private sub.... sum += val(textbox1.text) textbox1.text = sum prod = 0 p = true end sub end class