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

Create Your Own Calculator Tutorial Part 1 - C Sharp Visual Studio 2008

Loading...

Sign in or sign up now!
132,823
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 16, 2009

This is part 1 of my second tutorial.

In this tutorial I will show you how to create your very own calculator similar to the windows calculator. Not only will you make a useful program but learn a lot of things that C# can do.

Download Link:

Part 1: http://bit.ly/a3hHHO

Part 2: http://bit.ly/aTGB09

WEBSITE: http://www.Quack-Ware.com

FORUM: http://www.Quack-Ware.com/forums

SUBSCRIBE TO MY VIDEOS

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (QuackWare)

  • Hello, this tutorial is really helpful, but I am using the vb2008 express edition and i can't do the + button, the bool feature doesnt exists. Any help please?

  • @ivoivo001

    Never really used vb.net but I do know for a fact that there is a bool data type in visual basic.

    Something like this:

    Dim isCool As Boolean = True

    ' If statement

    If isCool Then MsgBox("Quackware is cool")

    End If

    Would be the simplest of examples.

  • hey what if i wanna add a sin ,cos, tan etc. to my calculator

    and also want a textbox to be multiline upper line shows the expression and lower line shows current value that is inputtted.....

  • @navjot1331

    For sin, cos, tan there are built in C# functions, Math.Sin() Math.Cos() Math.Tan()

    For the multilines you would have to mess around with the textbox properties, I don't know how to do this off the top of my head.

  • I am trying to follow your tutorial, and im a noob even at basic coding. But i noticed that your formatting is very different. I am working around it but i am having to type different things to get the same result. Im stuck on bool, it says declaration expected under the error code. Any suggestions :s ? Sorry if that sounds confusing.

  • @Joeyz1994 If you send me your source code or an image of your source code with the error I can try and debug it and see what is wrong.

Top Comments

  • check it dude.

    for example.

    0.1 + 0.9

    doesn't work :)

  • instead of: textBox1.Text = textBox1.Text + "1";

    You can use 1 event click to all the numbers (1-9)

    try the code below:

    textBox1.Text += (sender as Button).Text;

see all

All Comments (113)

Sign In or Sign Up now to post a comment!
  • when i'm done this in a couple minutes my co-workers will be impressed

  • thank you for this video. this was very helpful :))

  • Hey, the error message I get is System.Web.UI.WebControls.Text­Box' does not contain a definition for 'Tag

    I have followed your code to the letter. Any suggestions?

  • Question: When I'm at plus = true , I get error that plus is already in use. I searched, and the only other plus is the bool plus = false; . Any suggestions?

  • Guys I hope you know that anything you do in VisualANYTHING is NOT programming. If you want to do programming you have to learn the idea of everything you use (and by everything I mean EVERYTHING). This is as hard as drawing a picture with paint. This is not what programmers learn in university. Just for you to know...

  • any tips on remembering all the code???

View all Comments »
Loading...

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