Help im doing a calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cooladrrang
    New Member
    • Sep 2006
    • 3

    Help im doing a calculator

    i already did the calculator but theres 2 text box for the addition and another 2 for the sub etc. whats the code so that i only need one text box and whatever you write there it solves it (ex. 2 *2 or 2-2).
  • CaptainD
    New Member
    • Mar 2006
    • 135

    #2
    Originally posted by cooladrrang
    i already did the calculator but theres 2 text box for the addition and another 2 for the sub etc. whats the code so that i only need one text box and whatever you write there it solves it (ex. 2 *2 or 2-2).
    You just need to add a third component to tell the code what to do with the values in the two text boxes.

    Look at Microsofts calculator. It uses command buttons. One for +, one for - etc. And they only use one text box. I assume they hold there values in either variables and/or arrays then display back the results.

    you can do the same thing.

    Comment

    • Reena83
      New Member
      • Sep 2006
      • 32

      #3
      Originally posted by CaptainD
      You just need to add a third component to tell the code what to do with the values in the two text boxes.

      Look at Microsofts calculator. It uses command buttons. One for +, one for - etc. And they only use one text box. I assume they hold there values in either variables and/or arrays then display back the results.

      you can do the same thing.
      Hi, are you still having problems. I have a calculator program its so simple and all in good working order. Just send me an email. And Ill help you out...
      Reena

      Comment

      Working...