Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

Creating a Calculator in Visual Basic Part One

Posted on April 23, 2010April 23, 2010 by OD


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

25 thoughts on “Creating a Calculator in Visual Basic Part One”

  1. Firchild says:
    April 23, 2010 at 12:30 PM

    @MrPimpoen Its on the more info bit already

    Log in to Reply
  2. Firchild says:
    April 23, 2010 at 1:23 PM

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

    Log in to Reply
  3. aimanyusoff930 says:
    April 23, 2010 at 1:46 PM

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

    Log in to Reply
  4. mysteryloser24 says:
    April 23, 2010 at 1:56 PM

    @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 🙂

    Log in to Reply
  5. MrPimpoen says:
    April 23, 2010 at 2:48 PM

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

    Log in to Reply
  6. YourMomBakesPies says:
    April 23, 2010 at 3:30 PM

    I love your voice!

    Log in to Reply
  7. Supercowcanfly says:
    April 23, 2010 at 4:29 PM

    lol me too

    Log in to Reply
  8. hedgehog6jc says:
    April 23, 2010 at 4:58 PM

    thanks this is helping me a lot 🙂

    Log in to Reply
  9. mysteryloser24 says:
    April 23, 2010 at 5:35 PM

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

    Log in to Reply
  10. Firchild says:
    April 23, 2010 at 5:37 PM

    @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!

    Log in to Reply
  11. TTTTTT272 says:
    April 23, 2010 at 6:35 PM

    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

    Log in to Reply
  12. SalladTM says:
    April 23, 2010 at 7:31 PM

    @invinciblecp Change the maxlength property in the code.

    Log in to Reply
  13. SpinRichard32 says:
    April 23, 2010 at 7:53 PM

    Is that Rob Rydon Narrating lol

    Log in to Reply
  14. wozzupgamer says:
    April 23, 2010 at 8:14 PM

    c = delete 1 thingwhat = delete evrything

    Log in to Reply
  15. Tetzukai says:
    April 23, 2010 at 8:54 PM

    Thanks for tutorial.

    Log in to Reply
  16. whicketywack says:
    April 23, 2010 at 9:40 PM

    nice calculations haha

    Log in to Reply
  17. whicketywack says:
    April 23, 2010 at 10:24 PM

    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

    Log in to Reply
  18. zztop1098 says:
    April 23, 2010 at 10:56 PM

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

    Log in to Reply
  19. invinciblecp says:
    April 23, 2010 at 11:54 PM

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

    Log in to Reply
  20. sallyann22 says:
    April 24, 2010 at 12:48 AM

    Superb!!

    Log in to Reply
  21. zainuintel says:
    April 24, 2010 at 1:38 AM

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

    Log in to Reply
  22. mastermindzh says:
    April 24, 2010 at 2:29 AM

    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)

    Log in to Reply
  23. DSlack3r says:
    April 24, 2010 at 3:24 AM

    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?

    Log in to Reply
  24. scherzooo says:
    April 24, 2010 at 3:37 AM

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

    Log in to Reply
  25. ghyrat08 says:
    April 24, 2010 at 4:19 AM

    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

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2025 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme