Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Compiled Languages > Visual Basic   »   code for a simple calculator

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Oct 5, 2009, 09:52 PM
sheenie
New Member
sheenie is offline
 
Join Date: Oct 2009
Posts: 1
sheenie See this member's comment history on his/her Profile page.
code for a simple calculator

hello everyone,.
Please...
Who can help me making code in simple calculator?..
I really don't know how to make a code, i just design a simple calculator in Vb 6.0 it has a basic functions...
Thanks.

Reply With Quote
 
     

Answers
 
 
Old Oct 7, 2009, 02:36 PM   #2  
Ultra Member
Perito is offline
 
Perito's Avatar
 
Join Date: Feb 2009
Location: USA
Posts: 2,881
Perito See this member's comment history on his/her Profile page.Perito See this member's comment history on his/her Profile page.
Here's an answer I gave some time ago for this same problem:

http://www.askmehelpdesk.com/visual-...ng-369748.html

Basically you drop 10 buttons on a form and label them 0 through 9. Drop 5 more buttons on the form and label them +, -, *, /, and =. Drop a textbox on a form for the result. Put two more buttons on the form and label them "C" and "CE" for clear and clear entry. You have to write code to handle the pushing of the buttons. You have to figure out the "state" of the calculator. There are at least these states:

1. The first number has not been entered or is being entered.
2. The first number has been entered and a function key has been pressed (not =)
3. A second number has been entered and another function key has been pressed (not =)
4. At least two numbers have been pressed and the = button has just been pressed.

Are you just supposed to design this without actually writing code?
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
vb code for calculator
(1 replies)
code for financial calculator
(1 replies)
A simple to code forum
(1 replies)
visual basic code for calculator
(2 replies)
my wrong calculator code.
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:53 AM.