Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (122)

Sign In or Sign Up now to post a comment!
  • hey man great tut but could you make a vid on what each of the templates are used for and their functions. (guys don't dislike my comment i am new to programing and i don't know much, since i am teaching myself)

  • Great tutorial man! Still got the same questions like the others, how to make the calculator calculate for example plus and minus together?

  • You cant do like 3 + 3 + 3...

  • I can't do like this...: 15+5-6?

  • This flippin' calculator is full of bugs.

  • i'm at 7:30 and i'm sure you forgot to set the multipl, divide etc to false when running checkifequal method

  • THX!

  • how do u add sqrt(root of), cant get it to work was trying: math.sqrt but got some compiler errors that i dont understand, help please

  • Great sir .... thanks

  • how to handle divide by zero exception??????

  • Try 2*2+2 which give 24 but the correct answer is 6 or it may be error at my side. Can you please try.

  • @epeshawar I get 16! Guess there is more to be done! Maybe it can´t handle more then for example plus or minus at a time!

  • @epeshawar Hmm! Did it another time and it gave me 8, seems like it´s calculatin 2*2*2 = 8.. Seems I´m right in can´t handle more then one calculating at a time!

  • @sajonaraa You do know 2*2=4*2=8 right?

  • hey dude, your video did help me alot, im still a beginner, and you help me step by step, how can i do the following, 23+15-3

    how do i change my code in this,,,,,,,

  • It was cool, but divide button is not working properly when I'm doing more than one operation:

    5+5=10

    10/2=0.83333333333333333333333­33333

    I'll appreciate if you help me to correct it :)

  • cool stuff, was used to Delphy 5 but that new stuff gacve me a hard time, now its a lot easier, thx mate

  • THank you so much. This was great

  • but thanks you are doing it.. and doing it free knowledge should be free

  • this is old school can you do expressions?? like (1+9+10)*2 /20 and when we click eqaual could it result into 2????

  • for the clear button why not just do "textbox.clear();"

  • thank u very much , it was very helpful. you made it very simple to do it up.

  • Great tutorial. Thank you. I'm having difficulties with decimals though. When I subtract 1 from 2.5 I get 24. Am I doing something wrong?

  • God bless you dude. You taught me alot. Thanks alot :) keep posting these stuffs.

  • awesome vid

  • Good tutorial buddy

  • Thank you for this video!

    It's working very well, and it's easy to understand. :D (Y)

  • Great job!!!

    very easy to understand...

    Please post some more videos about the C# for beginners.

  • nice video..can u please tel me about ur website for further help regarding c sharp?

  • Hey i know c++ an c# differ from each other but i was wondering if you could make a simple video explaining how to use arrays I'n c# so i can see how it done I'n this language im hoping it's similar enough to help me I'n making arrays I'n c++ thank you for your time :)

  • @ all the people that are trying to do multiple operations

    You can't do multiple operations with this approach because you are using a tag to save only one value to do an operation on. So you can't do something like 3+3+3 because your tags value wasn't updated(and the fact its its still a string).

    This calc is only for doing an operation on two numbers. It was a quick way of showing you different techniques you can use in C#. A real calculator gets really complicated really fast.

  • thanks man, really helpful! ;)

  • verrrry gud work. :) thanx man

  • Thanks for the tutorial, it help me a lot.

    

  • Thanks for the tutorial, it help me a lot.

  • Thank you so much for this awesome video! I didn't even know any C# before I started, and now I have a fully functional 4-bit binary calculator up and running.

  • hi thanks for that video. i am a new learner of c# and i am doing my work on visual studio 08 . i just made a calculator and it helped alot. now want to include a key of backspace that it removes the item one by one but itsnt working for me. need your help . thanks and will coment more . or if you got any direct email id then do let me know thanks . waiting for your reply

  • You forget about dividing zero..

  • how come when i do 5*5=(25)+3 i get 700? PLEASE HELP!!!!!!!

  • hi

    how can i it work for 5*2+2.....?

    not working.....

    will you please help me....??

    please mail me it's procedure

  • hi

    how can i it work for 5*2+2.....?

    not working.....

    will you please help me....??

  • after redoing rest to equal

    my clear wont work :/

  • ok for the bunch of zeros you need to open AN "if" so if there is nothing on the textbox, you would return else textbox + "0". and about the bug when you divide by zero you need an exception try whatever we have on div then write catch (expection) {textbox1.text="Error"} that should do. Also another think that you need to do is to go into the textbox properties and change READONLY to true, because if not the user would be able to type letters on it and then would created a bug too

  • hi, why is it that you use tag and not text?thanks

  • How to avoid adding bunch of zeros at the beginning and still able to add them later in use of decimals?

  • This was a really usefull video thanks mate

  • thx m8 for this video but a i still cant figure out how to operate with decimal numbers any ideas ?

  • you forgot the chking of the divsion by zero

  • after this one you should make a new calculator which does more complicated stuff

  • nice tutorial. it would be interesting, if you make a video/tutorial on classes:: good job.

  • thank u so much this was really helpful. i made it n everything seemed to be working fine. and thanx for the step wise explanation it was so helpful to understand the code.

  • Nice tutorial it's really helpful,thanks:)

  • Do you know how to add more than two numbers? Like 1+1+1 = 3?

  • @theburntshadow

    if (textBox1.Text = ""){

    return;

    }else{

    plus = true;

    textBox1.Text = Convert.ToDecimal(TextBox1.Tag­) + Convert.ToDecimal(TextBox1.Tex­t);

    }

    This might work, assuming that the Tag is automatically set to "", and converted to a decimal as 0 on load

  • @iWolfrost

    Sorry guys, i meant:

    if (textBox1.Text == ""){

    for that if statement, use 2 equal signs O_o

  • @iWolfrost

    Oh and as well, after "textBox1.Text = Convert.ToDecimal..." put

    TextBox1.Tag = TextBox1.Text;

  • @iWolfrost Okay thanks.

  • thank yo so much this is very helpful

  • If you use equal twice.. it doesnt go to previous numbers and comes out with error.. try pressing equal twice...

  • Thanks alot! This was really helpful and I made some aprovements after your tutorial but it really helped alot.

  • Well there are problems, I must say. I found you can type in the message bar, which could be fixed by changing the text box to "read only." And if you divide by 0 you get a crash. Also anything with 3 calculations will give you a screwy number.

    BUT BUT BUT, it was my first c# tutorial and I must say this really really really helped! Thanks. Thumbs up.

  • nicely explained =)

  • Im stuck with my vb2008 express edition.

    There's no "gerenate Method Stub" function (4:55)

  • @ivoivo001 in this case you have to write it like it is on the vid

  • Its great work Dude

    But u forget make "ReadOnly" property TRUE.

    If u dont do this user can also type alphabets in textbox.....which is of no use.

  • @nishank08 where??

  • Thank you for the great video! help me out on my final thank you so much!

  • i finished it and it works so i saved it and now when i go into the folder and try to open the calculator a warning pops up and says NET files can cause harm to my operating system. so i click ok and windows doesnt know what program created it. it cant find what program ceated it when it trys to look it up on the internet and apparently visual studios didnt make it. help i took along time to make this and i want something to show for it.

  • Comment removed

  • Im getting "FormatException was unhandled" when i play around little with the numbers. It points out something to the "decimal dec = Convert.ToDecimal code. Anyone got the same thing? pm me.. thx for the tut, learned alot :)

  • there were a few bugs but i got most of them. like in the clear you type

    textbox1.clear

    textbox1.tag = ""

    bool plus = false;

    bool sub = false; etc

    but over all very good

  • there is a huge bug...ur code will crash if you divide any number with 0...

    so use this div code...

  • Comment removed

  • howw can you add Breakpoints in 2010??

  • It would be realnice if we could get some awnsers on the feedback.

    Thanks

  • this is a really clear and informative video, however i have noticed a bug.

    if i do any sum with three values in it i get thrown with a random answer, for example if i do 6+6/2 i get 0.75.

    have i done something wrong?

  • There is something wrong with the dot function.

    If I try 0.123 * 2 the result is 234.

    If I try 1.1 + 1.1 the result is 22.

    Any help with this?

    Thanks fot the instruction video.

  • this is my first time ever with c#, PERFECT! 5/5 Sub. Thank you.

  • Is there a way to make the buttons not highlighted, and a way to use the key pad?

    Thanks, you're tutorial was awesome. I learned a lot of stuff.

  • I wanted to ask the same question... How can I use the key pad for typing?

  • Works nice. Found a problems. Crashes when you do divide by zero. Not that anyone should divide by zero still if it gets accidentally hit then instead of crashing might want to just have the program say 'undefined'

  • its really interesting

  • After one equation you can't continue off the new value, you need to retype the number. How can I resolve this?

  • P.S.

    It only continues if I use the same operation.

  • you need to reset the equal bool to false in the + - * and / methods just throw in an if statement like this

    if (equal)

    { equal = false

    }

  • he he i realised that you hadn't done the other things at 1.33 ;P

    anyway awesome vid, it helped me loads

  • Awesome job man, Definitely helped me out in my programming class.

    I would have been lost without your tutorial!

  • Thx for the videos!

    I've got an error, pls someone help me..

    The calculator works perfect with integer numbers (for example 10+5=15), but if I try this: 1.1+2.2 I've got an error..

    What's wrong?

  • textBox1.Text = "";

    textBox1.Tag = "";

    all u need in clear button :p saves time ^^

  • Awesome!!! Very simple and to the point video and i really like the way you present it thumbs up man!

    Can you please make a video series on C sharp tutorial on VS 2008 like the one bob tabor had with some small project.

    that would be very awesome!

  • Thanks a lot man.

    This was my first program (except HelloWorld :D). You should really add

    plus = minus = multiply = devide = false;

    at the end of your equal button code cuz if i add something fort and multiply something after you will get some funky results :P

  • remember in programming this is only a variant idea to develop, you can do this calculator in another way

  • for some reason the 0 doesn't work for me.

    Any questions?

  • TY!!! ^^

  • Great job, you missed one thing. There is not error checking for "division by zero". If you type a number and then divide it by 0, you program will crash.

  • please post your website addressso that we can subscribe to your videos.You re doing a great job it helps beginners like me learn fast

  • How can I program the calculator to add like this:

    i click 1 it shows 1

    i click add

    i click 12 it shows 12

    i click add it shows 13 etc.

    so that it keeps doing it without the equal button.

    plz reply.

  • Its really nice work u done i learn it so easly

    thanks for that

    can u please do some work on classes and methods i m a bit confuse on that thanks

    and will b waiting for next video

  • Superb tutorial.You've explained it so well. I liked it

  • Great video!.. good quality..

    rather than creating 4 variable:

    (plus, minus, multiply , divide)

    you can create one variable call mode and store (plus, minus, multiply , divide) as the value and use a switch statement at equal method.

  • Make a tutorial plz

  • Great job mate!! Really like your video, I think you explain it very good.

  • Nice............

  • You have to update the code with:

    plus = false;

    minus = false;

    multiply = false;

    divide = false;

    after each calculation or else you will have.

    1+1=2/2=0.5 (wrong)

  • Where do I have to insert that code?

  • if (plus)

    {

    decimal dec = Convert.ToDecimal(textBox1.Tag­) + Convert.ToDecimal(textBox1.Tex­t);

    textBox1.Text = dec.ToString();

    plus = false; // add this

    }

    Do the same thing with the other three minus, multiply and divide.

  • Thanks :D

  • Only thing that doesnt work for me is the Decimal.

    Like when I type 5.5+2.5 = 8, but in my calculator it says its 80, which means it entirely forgets to add the decimal in its calculation giving me a wrong answer.

    Do you know if this is a common bug? I checked this over twice, and I dont see what I've done wrong.

  • And do commas work instead of dots? That the problem lies in your keyboard settings.

  • I tried to use comas, but it didn't work for me.

  • Comment removed

  • @Anonymous2992 use "," in your code instead of "."

  • I was just having a thought. Sometimes people press the plus button but then decide that they want say minus instead. Doing this with the current code will make 2 or more boolean values true and will probably screw up the equals function.

    My suggestion is to place code in every arithmetic logic sign (+, -, * and /) stating that all boolean values should be set to false except the one you are using.

    I hope this helps with any issues.

  • Very good tutorial.

    I was hoping that you could help me with a problem.

    I press 6*6=3-3=

    The first = makes 36.

    Typing 3 should start a new equation but the next = makes -6.

    Please help me

  • thanks for the tutorial, it kinda made start to understand the c# language! the only thing I miss is to program the keystrokes to the numbers. I would hopefully watch a tutorial of that.thanks again!

  • never mind, i've found out how to do that:)

  • gud one.

  • tnxxx buddy very helpful video,,,,.,.,.,.,

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