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)
@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!
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.
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
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
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.
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.
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.
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 :)
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'
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.
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.
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.
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!
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)
CODTURTLEISGOOD 2 days ago
Great tutorial man! Still got the same questions like the others, how to make the calculator calculate for example plus and minus together?
sajonaraa 3 weeks ago
You cant do like 3 + 3 + 3...
TheBIRDIEGaming 1 month ago in playlist Fler videoklipp från QuackWare
I can't do like this...: 15+5-6?
topyd 1 month ago
This flippin' calculator is full of bugs.
sonofa2 3 months ago
i'm at 7:30 and i'm sure you forgot to set the multipl, divide etc to false when running checkifequal method
101animations 3 months ago in playlist QuackWare C# Tutorials
THX!
TheShadowTuber 4 months ago
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
MrVeljanov 4 months ago
Great sir .... thanks
shindedeepakm 4 months ago
how to handle divide by zero exception??????
tayyabqazi143 5 months ago
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 5 months ago
@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!
sajonaraa 3 weeks ago
@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 3 weeks ago
@sajonaraa You do know 2*2=4*2=8 right?
epicpie100 2 weeks ago
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,,,,,,,
garshen1 5 months ago
It was cool, but divide button is not working properly when I'm doing more than one operation:
5+5=10
10/2=0.8333333333333333333333333333
I'll appreciate if you help me to correct it :)
Jane6945 5 months ago
cool stuff, was used to Delphy 5 but that new stuff gacve me a hard time, now its a lot easier, thx mate
Goultek 6 months ago
THank you so much. This was great
derek6541 6 months ago
but thanks you are doing it.. and doing it free knowledge should be free
MrInayat619 6 months ago
this is old school can you do expressions?? like (1+9+10)*2 /20 and when we click eqaual could it result into 2????
MrInayat619 6 months ago
for the clear button why not just do "textbox.clear();"
Xbox360Playas 7 months ago
thank u very much , it was very helpful. you made it very simple to do it up.
luvguru243624 7 months ago
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?
amazingturk 8 months ago
God bless you dude. You taught me alot. Thanks alot :) keep posting these stuffs.
indysuzo 8 months ago
awesome vid
vorkvoyd 8 months ago
Good tutorial buddy
udayonzeify 9 months ago
Thank you for this video!
It's working very well, and it's easy to understand. :D (Y)
gfilipecz 9 months ago
Great job!!!
very easy to understand...
Please post some more videos about the C# for beginners.
Hrashid789 9 months ago
nice video..can u please tel me about ur website for further help regarding c sharp?
fahadravian101 10 months ago
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 :)
omg99wcftw 10 months ago
@ 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.
Poloball3 11 months ago
thanks man, really helpful! ;)
TheSkunk64 11 months ago
verrrry gud work. :) thanx man
danishkayani1 11 months ago
Thanks for the tutorial, it help me a lot.
fatimamsq 11 months ago
Thanks for the tutorial, it help me a lot.
fatimamsq 11 months ago
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.
TheWrekker 11 months ago
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
londonkaland1 11 months ago
This has been flagged as spam show
You forgot about dividing to zero
kamranno 11 months ago
You forget about dividing zero..
kamranno 11 months ago
how come when i do 5*5=(25)+3 i get 700? PLEASE HELP!!!!!!!
MrSwaggnifficent 1 year ago
hi
how can i it work for 5*2+2.....?
not working.....
will you please help me....??
please mail me it's procedure
alishahzadashraf 1 year ago
hi
how can i it work for 5*2+2.....?
not working.....
will you please help me....??
alishahzadashraf 1 year ago
after redoing rest to equal
my clear wont work :/
99lukas699tut 1 year ago
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
natiraquelus 1 year ago
hi, why is it that you use tag and not text?thanks
1111pg1111 1 year ago
How to avoid adding bunch of zeros at the beginning and still able to add them later in use of decimals?
siriusounds 1 year ago
This was a really usefull video thanks mate
zeavable 1 year ago
thx m8 for this video but a i still cant figure out how to operate with decimal numbers any ideas ?
sneakysnake20008 1 year ago
you forgot the chking of the divsion by zero
sissendz 1 year ago
after this one you should make a new calculator which does more complicated stuff
yonatanhh 1 year ago
nice tutorial. it would be interesting, if you make a video/tutorial on classes:: good job.
astho4 1 year ago
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.
barbie4351 1 year ago 6
Nice tutorial it's really helpful,thanks:)
niidzaa 1 year ago 13
Do you know how to add more than two numbers? Like 1+1+1 = 3?
theburntshadow 1 year ago
@theburntshadow
if (textBox1.Text = ""){
return;
}else{
plus = true;
textBox1.Text = Convert.ToDecimal(TextBox1.Tag) + Convert.ToDecimal(TextBox1.Text);
}
This might work, assuming that the Tag is automatically set to "", and converted to a decimal as 0 on load
iWolfrost 1 year ago
@iWolfrost
Sorry guys, i meant:
if (textBox1.Text == ""){
for that if statement, use 2 equal signs O_o
iWolfrost 1 year ago
@iWolfrost
Oh and as well, after "textBox1.Text = Convert.ToDecimal..." put
TextBox1.Tag = TextBox1.Text;
iWolfrost 1 year ago
@iWolfrost Okay thanks.
theburntshadow 1 year ago
thank yo so much this is very helpful
eirnir 1 year ago
If you use equal twice.. it doesnt go to previous numbers and comes out with error.. try pressing equal twice...
mainufo 1 year ago
Thanks alot! This was really helpful and I made some aprovements after your tutorial but it really helped alot.
thomasakerlund 1 year ago
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.
SGTProduction 1 year ago
nicely explained =)
MrVbdude 1 year ago
Im stuck with my vb2008 express edition.
There's no "gerenate Method Stub" function (4:55)
ivoivo001 1 year ago
@ivoivo001 in this case you have to write it like it is on the vid
ivanlp4ever 1 year ago
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 1 year ago
@nishank08 where??
ivanlp4ever 1 year ago
Thank you for the great video! help me out on my final thank you so much!
o0pol0o 1 year ago
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.
AustinAlive1 1 year ago
Comment removed
AustinAlive1 1 year ago
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 :)
vasterhaninge 1 year ago
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
XDalutZX 1 year ago
there is a huge bug...ur code will crash if you divide any number with 0...
so use this div code...
awais341 2 years ago
Comment removed
UAhmad9 1 year ago
howw can you add Breakpoints in 2010??
bradleytong 2 years ago
It would be realnice if we could get some awnsers on the feedback.
Thanks
lotfie 2 years ago
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?
OHFTutorials 2 years ago
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.
lotfie 2 years ago
this is my first time ever with c#, PERFECT! 5/5 Sub. Thank you.
Manifest222 2 years ago
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.
FlablessGuy 2 years ago
I wanted to ask the same question... How can I use the key pad for typing?
rockredbones 2 years ago
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'
fionaradha 2 years ago
its really interesting
fikrez 2 years ago
After one equation you can't continue off the new value, you need to retype the number. How can I resolve this?
ninad95 2 years ago
P.S.
It only continues if I use the same operation.
ninad95 2 years ago
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
}
majscythe 2 years ago
he he i realised that you hadn't done the other things at 1.33 ;P
anyway awesome vid, it helped me loads
Marmike44 2 years ago
Awesome job man, Definitely helped me out in my programming class.
I would have been lost without your tutorial!
marginalmeaning 2 years ago
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?
duderanch1984 2 years ago
textBox1.Text = "";
textBox1.Tag = "";
all u need in clear button :p saves time ^^
auronx223 2 years ago
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!
abduatutube 2 years ago
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
martinvindis 2 years ago
remember in programming this is only a variant idea to develop, you can do this calculator in another way
gaga1298 2 years ago
for some reason the 0 doesn't work for me.
Any questions?
yeahyeahyeah14 2 years ago
TY!!! ^^
SussoGobbino 2 years ago
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.
vbasic32 2 years ago
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
1265526 2 years ago
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.
monofono2006 2 years ago
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
ikhan079 2 years ago
Superb tutorial.You've explained it so well. I liked it
MsDevs 2 years ago
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.
uncleroxk 2 years ago
Make a tutorial plz
monofono2006 2 years ago
Great job mate!! Really like your video, I think you explain it very good.
vredurs 2 years ago
Nice............
NOTtheWii 2 years ago
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)
lundhM 2 years ago
Where do I have to insert that code?
GanDuumar 2 years ago
if (plus)
{
decimal dec = Convert.ToDecimal(textBox1.Tag) + Convert.ToDecimal(textBox1.Text);
textBox1.Text = dec.ToString();
plus = false; // add this
}
Do the same thing with the other three minus, multiply and divide.
lundhM 2 years ago
Thanks :D
GanDuumar 2 years ago
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.
Anonymous2992 2 years ago
And do commas work instead of dots? That the problem lies in your keyboard settings.
anoniem1918 2 years ago
I tried to use comas, but it didn't work for me.
GanDuumar 2 years ago
Comment removed
GanDuumar 2 years ago
@Anonymous2992 use "," in your code instead of "."
ivanlp4ever 1 year ago
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.
lazz56789 2 years ago
This has been flagged as spam show
cool video dude.
jiveshwar 2 years ago
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
thatguyonthexbox 2 years ago
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!
headsho 2 years ago
never mind, i've found out how to do that:)
headsho 2 years ago
gud one.
619coolnickhere 2 years ago
tnxxx buddy very helpful video,,,,.,.,.,.,
ankurmungekar 2 years ago