Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
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.
  Answer this Question    Ask about Visual Basic    Ask about another Subject  
 

Sudisha
Mar 31, 2009, 11:01 PM
i want to to create a calculator in visual basic. how can i do this.there only that key preasent what i know that is (0-9, +, -, *, /, ., = cleare)this code are preasent. so tell me the code which code i use to create this buttons.

Perito
Apr 2, 2009, 05:16 AM
I want to to create a calculator in Visual Basic. How can I do this? The only keys that are present are (0-9, +, -, *, /, ., = clear) this code are present. So tell me the code which code I use to create this buttons.

In all versions of Visual Basic, if you want a button that presents a given function, it's usually the simplest to "drop" a button on a form and label it with the appropriate prompt ("+", "-", "*", "/", "=", "1", "2", "3", ... ). If you then double-click on each button, you'll generate an "on keypress handler" function. All you do is put the code you want to use in there.

Please let me know the version of Visual Basic you are using. This is a pretty easy project so it should be fairly simple to help you out.