Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Visual Basic 2010 Tutorial: How to make a simple calculator with buttons

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,231
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 23, 2011

This is a video showing you how to make a simple calculator. Please comment and subscribe.

Declerations:

1 Textbox
16 Buttons
1 Label
1 Setting called "First"

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (llPcErall)

  • I made my own calculator. How can i create an instalation now?

  • @EnzoMSI

    There are basically two ways. One way is to use the installer that comes with visual basic or visual studio. The other way is to get a custom installer. I use a custom installer for my programs. VB Installer is easier though. Go to the tab where you find your settings. If it's not already open, double click your project name in the Solution Explorer bar in the right. After you have done this, A tab should be open containing several other tabs. click on the tab that says, Publish

  • @llPcErall

    Then mess around with some of the buttons on the right. (*****IMPORTANT****** If you used components that didn't come with visual basic or whatever you used to program your program, then click Application Files > Show All, and make sure all of them say include.) After you have changed all of the things that you wanted. click the Publish Wizard Button, save it to wherever, just remember to get it. Once you're done you will see a foldler containing a few files and folders. Done.

  • Aaand how do i add settings? :o

  • @pereesfly

    to add settings, look at the Solution Explorer (usually to the up, right corner), and double click My Project. This will open up a tab showing multiple tabs. go to the settings tab, and you will see boxes, put the name of the setting in the first box. Settings can be used for many applications, and can make your application more advanced.

see all

All Comments (58)

Sign In or Sign Up now to post a comment!
  • i tryed to reply to ur msg but it wont let me just wanted to say thx

  • how do you get the tab with the settings ?

  • @NickkRagz the code for exponents is X^X, ^ is Shift 6, the code for square roots is X^(1/2)

  • I am new to VB. In the above calculator, how can I make it so that it clears when a new operation is made? example: 3+5=8; then 6/2=3. Right now I have to clear manually between operations.

  • Is this work for vb 2008?

  • how do you get the settings.first?

  • divide isn't working the code for it is Label1.Text = "/" My.Settings.First = TextBox1.Text TextBox1.Text = ""  My.Settings.Save()

    that's correct code right?

  • I made my own calculator a diferent way but that doesnt matter, can someone help me with the code for calculating exponents? for example the code for multiply would be something like : x * x x being the variable you chose. Also the code for square root. Thanks

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more