PDA

View Full Version : Calculator program in vb


riya1234
May 8, 2012, 09:41 AM
Hi,
I want a calculator program in vb.. for eg:if I give firstnumber as 12 then if I click + sign.. 12 should be on textbox.. then if I give second number as 34.. at this time 12 should go and 34 should display.. then if I press equal sign the answer i.e 46 should display... can anyone please help me to write a code for this

Curlyben
May 8, 2012, 10:51 AM
Try this as it explains the code as you go through.
Simple Calculator in VB - This tutorial will demonstrate how to code up a simple calculator, note this calculator will manipulate two numbers and will not account for error catching in any great degree. (http://osix.net/modules/article/?id=53)