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 prod as integer = 1 p as boolean = false value as integer = 0

------function return value() as integer textbox1.text = value end function (button 1)----------private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click if p then textbox1.clear() p = false

end if textbox1.text &= 1 end sub -----(+ sign)-------private sub button16_click(byval sender as system.object, byval e as system.eventargs) handles button16.click sum += val(textbox1.text) textbox1.text = sum prod = 1 p = true end sub ----(* sign)----private sub button14_click(byval sender as system.object, byval e as system.eventargs) handles button14.click prod *= val(textbox1.text) textbox1.text = prod sum = 0 p = true end sub ----------

Sign up to vote on this title
UsefulNot useful