Home > Programming Tutorials, Tutorials, Video, Visual Basic > Creating a Calculator in Visual Basic Part One

Creating a Calculator in Visual Basic Part One

April 23rd, 2010 Leave a comment Go to comments


Part one of setting up a pretty decent calculator in Visual Basic (Actually functions much like the Windows calculator)

Related posts:

  1. Firchild
    April 23rd, 2010 at 12:30 | #1

    @MrPimpoen Its on the more info bit already

  2. Firchild
    April 23rd, 2010 at 13:23 | #2

    @aimanyusoff930 Sorry, I haven’t got a copy of VB6, that’s been out of date for 7 years!

  3. aimanyusoff930
    April 23rd, 2010 at 13:46 | #3

    can you post a video on how to make a bmi calculator for visual basic 6. 0 plz. . thank you. .

  4. mysteryloser24
    April 23rd, 2010 at 13:56 | #4

    @TTTTTT272 How about using a click event for the first number, and a double click event for the second number? That way when the button is clicked once it shows one number, and when clicked twice it shows the other. Hoe that helped :)

  5. MrPimpoen
    April 23rd, 2010 at 14:48 | #5

    i dont speak english so well, so can you write the cmd (name) codes for the following buttons: +, -, /, =, _Btw: nice tut!

  6. YourMomBakesPies
    April 23rd, 2010 at 15:30 | #6

    I love your voice!

  7. Supercowcanfly
    April 23rd, 2010 at 16:29 | #7

    lol me too

  8. hedgehog6jc
    April 23rd, 2010 at 16:58 | #8

    thanks this is helping me a lot :)

  9. mysteryloser24
    April 23rd, 2010 at 17:35 | #9

    OMG i could listen to you talk forever. . . xx

  10. Firchild
    April 23rd, 2010 at 17:37 | #10

    @TTTTTT272 If you check down on the comments on one of the 3 calculator videos I’ve posted, someone’s already posted a solution to your backspace problem, you’ll just have to dig around. With your second problem, you’ll have to assign an ‘If AND If’ or dual Case statement so that the buttons have to be used in tandem. Although it’s beyond me why someone’s created such an artificial and contrived project for you!

  11. TTTTTT272
    April 23rd, 2010 at 18:35 | #11

    Thank you. . . I have two questions. . . 1) is there a code for a backward button to remove the last entry, also I have a project and only allowed 5 buttons for the numbers. . . therefore each button would have to have two number values, I have created a button like that one a keyboard a Shift button. . . is there a code that will allow when the shift key is activated that it will allow the second number assigned to the button. . . . . Much appreciated Thanks

  12. SalladTM
    April 23rd, 2010 at 19:31 | #12

    @invinciblecp Change the maxlength property in the code.

  13. SpinRichard32
    April 23rd, 2010 at 19:53 | #13

    Is that Rob Rydon Narrating lol

  14. wozzupgamer
    April 23rd, 2010 at 20:14 | #14

    c = delete 1 thingwhat = delete evrything

  15. Tetzukai
    April 23rd, 2010 at 20:54 | #15

    Thanks for tutorial.

  16. whicketywack
    April 23rd, 2010 at 21:40 | #16

    nice calculations haha

  17. whicketywack
    April 23rd, 2010 at 22:24 | #17

    you must click on the text box where all the numbers appear and then go over to the options on the right side of your screen and scroll through until you see length. change the length to 16. i also had a problem where my length was specified at 14 but the code surpassed this causing it to add more digits. if this first method does not work please get back to me and i can copy the code here

  18. zztop1098
    April 23rd, 2010 at 22:56 | #18

    ohh. . crap i have to make a calculator for a project before midterms. . . .

  19. invinciblecp
    April 23rd, 2010 at 23:54 | #19

    how do u get the calculator to only accept 16 digits in the display.

  20. sallyann22
    April 24th, 2010 at 00:48 | #20

    Superb!!

  21. zainuintel
    April 24th, 2010 at 01:38 | #21

    yesss 999999999999999999999999999/5 subb ive been lookin for this for weeks

  22. mastermindzh
    April 24th, 2010 at 02:29 | #22

    According to Vintage Technology, both buttons are a way to clear or cancel an entry. The C button will clear all input to the calculator. The CE button clears the most recent entry, so if you make a mistake in a long computation, you don’t need to start all over again. for the code, i don’t know it either (yet)

  23. DSlack3r
    April 24th, 2010 at 03:24 | #23

    My instructor wants us to add both C and CE commands in our calculator? i was wondering what’s the difference between them?and whats the code for the command buttons?

  24. scherzooo
    April 24th, 2010 at 03:37 | #24

    I’ve been looking for something like this about a week. . . thx for the upload 8).

  25. ghyrat08
    April 24th, 2010 at 04:19 | #25

    u know why u getting “0″ in ur textbox??it is because u have entered in the properties of the textbox in the “TEXT” 0if u remove the 0 from the TEXT then it wont show up anymore

  1. No trackbacks yet.
You must be logged in to post a comment.