How to Make a Calculator in C# Windows Form Application Part-2
ฝัง
- เผยแพร่เมื่อ 1 ส.ค. 2014
- Source code - www.codebind.com/c-sharp/make-...
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Windows 8 Simple Calculator sample in C# for Visual Studio
Visual Studio WinForm Windows Calculator Tutorial
Sample Calculator with windows form application in c#
Creating a Calculator Visual Studio C#
Calculator in C# (Windows Application)
how to create calculater in window application with c#
A Calculator using C#
Simple Calculator in C#
Creating A Calculator Using Windows Form Application
Make simple calculator in c# windows form application
calculator code in c# windows form application
calculator program in c# using windows forms
window form application in c#
'Tis the best tutorial I found... after a long, long search on the net! Congratulations, bro, for sharing; helped a lot!
Hi,
Thank you so much for this tutorial,
But I have got a problem: when I do 1+5 then click equal (=) and then do any operation instead of doing the 6 with any other number it makes the 12.
Please Help!
I haven't finished it yet but will. It is working perfectly so far.
Thank you for taking the time to produce this for us newbies. It really helps me to see how a practical problem is put together.
Have you finished it now?
sir can you tell me using key handling event for calculator.
I know there are three type of key handling like key press, key down and key up . so how can i use in calculator.....
Great videos!! Thank you sir for your awesome explanation, I followed every step and I have my calculator working 100%! Thanks
Great job. Thank you very much for making these two videos
Hi all, when i do division by zero, how do i catch an exception in this case? Thanks!
it really helps me tnx bro
Thank you. These two video's were very helpful .
Good night and how do I go to store me every number stored on the label for example 2 + 2 + 2 +2 +4 + 5 just like windows does thanks in advance.
Very effective video. It helped me a lot to finish my assignment. Thank you so much for the nice video.
Thank you SIR. Hope I become good in programming.
Hey i did everything like the video but its like not updating whenever im running the program?
what can i do ?
Thank you for this useful project, very clear explanation Sir!
sir my . and any operator are not working along with each other means if i like to add 3.3+2 then complier shows error before writing '2'
or 2.3+ error
5.6* error
1.1- error
...
so how to recover it?
Hey I'm at 10:43 and I've followed every little detail and I checked twice still my label idk why is showing the word label 1 after I ran it and it shows nothing else and when I click + or any other Operation it doesn't work , plz help
please do this 0 - 6 - 5 or 0 * 5 * 3 it will be error how to treat.
Thanks, easy to follow and works!
Thank you bro ! Help so much.
Thank you so much........... very much informative and interesting.
Well done, ProgrammingKnowledge. Well explained and this lesson is a very good basic to go forward in programming in C#
Klaudia Mueller please learn the basics first (operarors, datatypes, variables definition, scopes, oop, design patterns) then you'll see the right way...
A lot of codes! Thank you for this! Subscribed
Please can you explain why my decimal is not responding to the oerator.. eg. 2.5 + or any other operator keep crashing,,i get a message with input string was not in a correct format
Your video helped me a lot about my homework. Thank you.
Hey!
Very good and helpful tutorial.
I just want to add something i had a problem with.
I always get this exception error when i try to use decimal numbers!
"An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll"
how i fixed this was very simple. Change the text "." that represent a comma in your design form to a ",".
and make sure to change the "." in your comma handler to "," too i.e the if statement.
Thanks again :)
Mohammed Al-Jumaili I have same problem. That not solved my problem. Weird
Thanks my dude, I was getting really confused for a second there.
Thank you so so very much
That was really very easy to understand as a beginner❤❤
Thank you so much. You really teach so well.
Praise you for making this.
Good to learn. i enjoyed.Thank you
When i tried to follow this tutorial then i found a little issue. When i created the bool then i could not use number-buttons cuz they were not working and nothing appeared in textbox. To mąkę it appear i had to add to instruction for number-buttons "if" phrase "isoperationperformed = true".
Then i could not use numbers like 10 or something like that cuz only one number appeared like: when i wanted to write 12 then IT appeared like 1 and then changed on 2.
superb. it's really great
and you teach easily
hey......
super...... i like it... its realy working... thank you so much
:)
very smooth knowledge but i want to ask one thing..
when we perform the operation the result value goes into the label box.. but when we do more calculations.. the label box just showing the first result and current operation.
Very helpful to me. Thank you so much for making this video.
Just one comment:
If we press the equate button and want to continue to press an operator button. It will "performClick" the equate button again.
So, I suppose to add one line at 18:16:
if (labelCurrentOperator.Text != "") // The label shows something, which means the last action is not pressing the equate button.
button15.performClick();
Thanks so much it really helped me
how to make it so if any button is clicked after equals to the textbox is cleared
good job, appreciate it can do substring, to cancel each number
Great video! Thank you very much!
Thank you very much !!1 this video is a realy good!
thank yo uso much. i have completed the tutorial and it goes very fine.. its kind of nosebleeding hahaha
Thncs for this label statement it is really working..i was fixing it since yesterday
What a great tutorial...You are awesome...
Hi Sir, the problem is that after clicking the plus(+) operator and then click the equal(=) operator it doubles the value :(
Ya thats how the actual calculator works. Go and cehck
Really helpful
Clear and good
Sir can you make a Netbeans version of this? or do you have one?
Please help me. when I press a character other than + it always points to +. is there any solution?
nice video its very use fully thank you very much.
Thanks So much for this 2 Awesome helpful videos it seriously helped me alot do my own calculator and
from now ill use my own calc instead of the normal one! also my friends were surprised Thanks!
very informative n useful for beginners thank you so much
Dude thank you so much you are the best :)
hey it's throwing the error at = button
please suggest me on this
Great !!! Thanks 4 d tutorial !
Great tutorial! Very clear, logical and easy to follow.
Go to #coderdhruv
How to change decimal notation form (,) to (.)?
Very helpful
thanks.
if you may consider this request can you make tutorial for change password with database
I make this program or form i coded the same but it is giving me 5 errors that cannot implicitly convert type string to bool and cannot implicitly convert type char to string...
Plzzz help me
thank you helped me so much cause I such a noob
thank you... it's really helpful
Can you help pls? I did this in java/netbeans. It works but in textfield, it shows the results as always double value. For example 2+3= 5.0 What can I do to fix this?
when you declare the Variable make his data type integer or int
great tutorial !
Thank you very much.
Nice tutorial, thank you.
I converted this Form app into a WPF app (with XAMLcode) successfully (its slightly different).
Next step is to implement the keypad using this app (works much faster).
so did you do successfully implement it ?
very thanks dear man
Allah bless you
not sure why, but it will not let me use the code "button.text"
just wont work no explanation, everything is exactly identical to his code. Anyone know?
Because it's button.Text
Thank you brother!
Please help me. Result error when 3+3+5-1*6
But it dosen't work, everytime i want to do for example 9*9 it works but after that it just goes crazy if i pun another *
I get 81^2 and so on.
techer you are best techer
really its good
but how can i use in another system
Bro you my new hero
thank you! u helped me so much!!!
What you are doing now... If active
Thank you!
wow thank you so much!
Thanks bro.Good Job. Keep so on...
dude you have a Notepad? i liked ur tutorial videos.
.clear is not available in my library. How I can get?
Very helpful thanks! :D
Thank you for helping me do my homework :))
+Chichernea Anamaria I agree
Thank you for your work. But there is a problem. You didn't add anything about multiple operations. For example; 12+12=24 but when we get this result, we can click at another number button to continue addition. But at this work, we can't get the exact numbers for the multi operation
Yes bro .same prblem
thank you!
decimal point does nt work?
thank you for this tutorial
u r really superb!!!!
خيلي خوب بود سپاس
Thx a lot !!
jesa TV ke screen par logo working kar tea hai vo coding software kase banea gea ose kea coding kea hai
Great tutorial, helped me with some of my problems !
But when i click 3+3 = *display* 6 but when i click + again, it straight away adds the 6 which display 12 (*3 + 3 + 6*). It does not allow me to input a 2nd number .
Same
@@abdullahajeebi same, u found a solution yet?
Try this solution, making sure to ignore the ‘InitializeComponent’ method as it is almost definitely going to be incompatible with the components on your calculator’s own GUI in addition to taking the time to rename the relevant methods - i.e., ‘button5_Click’, ‘button6_Click’, ‘button16_Click’, etc. - so that they match up with the corresponding names of the click event listeners that you have previously endowed your own button components with:
pastebin.com/raw/1B9AFkkT
i just added "resultValue = 0;" at the end of the code under "labelCurrentOperation.Text = "";" and it worked fine.
@@ilikecod4584 Dude you are ultra fucking legendary, you fixed it for me
sir please i want program clearly .u should do a gdd job
very nice..please keep some explanation...
thank you very very very much
When I'm following your code example, I crash into problems with some commands.
There is something wrong with operator_click because when I try to use your example, it just doesn't work should.
For example trying to write operationReady = button.Text it doesn't accept it. I have to write button.Content. And maybe that causes some problems, because at least calculator doesn't work as should? Switch is not working either, even I've coded it exactly like you did. So maybe currentOperationLabel doesn't get right values from those variables? And when reading that currentOperationLabel like .text, it doesn't work, and I have to do it again by .Content, and maybe that affects to switch somehow? Only thing that works is adding. (even operation label doesn't show the information right). Other operations doesn't work at all.
Thanks A Lot !!
Great job! But what's that background sound though? Sounds like a hair dryer lol.
Thank you
Good, thanks.
Thank you brother
thank you sir!
ty bro its rly works :)
Thanks man your smart
Very helpful