How to Make a Calculator in C# Windows Form Application Part-2

  Рет қаралды 396,255

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Пікірлер: 197
@enihgilead1427
@enihgilead1427 6 жыл бұрын
'Tis the best tutorial I found... after a long, long search on the net! Congratulations, bro, for sharing; helped a lot!
@madjayhawk
@madjayhawk 7 жыл бұрын
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.
@ledizzy2634
@ledizzy2634 2 жыл бұрын
Have you finished it now?
@李春鹏-g2l
@李春鹏-g2l 6 жыл бұрын
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();
@csstudent355
@csstudent355 Жыл бұрын
Your video helped me a lot about my homework. Thank you.
@aakashakku5
@aakashakku5 3 жыл бұрын
Thank you SIR. Hope I become good in programming.
@papiabiswas5633
@papiabiswas5633 4 жыл бұрын
Very effective video. It helped me a lot to finish my assignment. Thank you so much for the nice video.
@adrianv.1636
@adrianv.1636 5 жыл бұрын
Great videos!! Thank you sir for your awesome explanation, I followed every step and I have my calculator working 100%! Thanks
@reinie6279
@reinie6279 6 жыл бұрын
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).
@khingkhing7085
@khingkhing7085 3 жыл бұрын
so did you do successfully implement it ?
@spitfire3280
@spitfire3280 4 жыл бұрын
Great tutorial! Very clear, logical and easy to follow.
@coderdhruv
@coderdhruv 2 жыл бұрын
Go to #coderdhruv
@klaudiamueller5600
@klaudiamueller5600 9 жыл бұрын
Well done, ProgrammingKnowledge. Well explained and this lesson is a very good basic to go forward in programming in C#
@thewatcher1776
@thewatcher1776 8 жыл бұрын
Klaudia Mueller please learn the basics first (operarors, datatypes, variables definition, scopes, oop, design patterns) then you'll see the right way...
@rahadulhaq6387
@rahadulhaq6387 4 жыл бұрын
Thank you so so very much That was really very easy to understand as a beginner❤❤
@myself8709
@myself8709 2 жыл бұрын
Thncs for this label statement it is really working..i was fixing it since yesterday
@Moffe1A4
@Moffe1A4 8 жыл бұрын
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 :)
@Arghandevol
@Arghandevol 7 жыл бұрын
Mohammed Al-Jumaili I have same problem. That not solved my problem. Weird
@EmrikWan
@EmrikWan 5 жыл бұрын
Thanks my dude, I was getting really confused for a second there.
@SPOG17
@SPOG17 3 жыл бұрын
superb. it's really great and you teach easily
@helucz4772
@helucz4772 7 жыл бұрын
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!
@sudheerb4919
@sudheerb4919 7 жыл бұрын
very informative n useful for beginners thank you so much
@UsmanKhan-ny6bu
@UsmanKhan-ny6bu 2 жыл бұрын
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.
@tanjibontu6656
@tanjibontu6656 4 жыл бұрын
Thank you so much. You really teach so well.
@elunatsciencetime
@elunatsciencetime 10 жыл бұрын
it really helps me tnx bro
@kanchanamedapati6416
@kanchanamedapati6416 8 жыл бұрын
Thank you. These two video's were very helpful .
@ninamohamed490
@ninamohamed490 4 жыл бұрын
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
@maedevaezi4428
@maedevaezi4428 5 жыл бұрын
Really helpful Clear and good
@salaryunis2254
@salaryunis2254 4 жыл бұрын
Thank you for this useful project, very clear explanation Sir!
@tomknott2315
@tomknott2315 5 жыл бұрын
What a great tutorial...You are awesome...
@Ur_faVgirl742
@Ur_faVgirl742 Жыл бұрын
Is any one here 2023😮
@nmk852
@nmk852 Жыл бұрын
Me learning for exam lol😂
@driptin5647
@driptin5647 8 ай бұрын
2024
@Nate-bl9hy
@Nate-bl9hy 8 жыл бұрын
Great job. Thank you very much for making these two videos
@anileybekele
@anileybekele 8 жыл бұрын
good job, appreciate it can do substring, to cancel each number
@hasanaslan2688
@hasanaslan2688 5 жыл бұрын
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
@ravipala8087
@ravipala8087 2 жыл бұрын
Yes bro .same prblem
@GusioonYt
@GusioonYt 9 ай бұрын
Thank you brother!
@RaiseOfMaster
@RaiseOfMaster 4 жыл бұрын
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!
@MusicAfterDeath
@MusicAfterDeath 9 жыл бұрын
Thanks, easy to follow and works!
@ShivaniRajput-uz1eu
@ShivaniRajput-uz1eu 3 жыл бұрын
thank you... it's really helpful
@joeymoreau8478
@joeymoreau8478 6 жыл бұрын
Bro you my new hero
@MarakamiSG
@MarakamiSG 8 жыл бұрын
Praise you for making this.
@mahamedaamiincllahiibrahim6570
@mahamedaamiincllahiibrahim6570 6 жыл бұрын
techer you are best techer
@danield6086
@danield6086 4 жыл бұрын
Thanks bro.Good Job. Keep so on...
@juliusgloapelegrino8540
@juliusgloapelegrino8540 10 жыл бұрын
Thank you bro ! Help so much.
@rena1826
@rena1826 5 жыл бұрын
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 .
@abdullahajeebi
@abdullahajeebi 3 жыл бұрын
Same
@isak1496
@isak1496 3 жыл бұрын
@@abdullahajeebi same, u found a solution yet?
@lukechopper22
@lukechopper22 2 жыл бұрын
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
@ilikecod4584
@ilikecod4584 2 жыл бұрын
i just added "resultValue = 0;" at the end of the code under "labelCurrentOperation.Text = "";" and it worked fine.
@kerel4417
@kerel4417 Жыл бұрын
@@ilikecod4584 Dude you are ultra fucking legendary, you fixed it for me
@AnaAna-ju3lt
@AnaAna-ju3lt 8 жыл бұрын
Thank you for helping me do my homework :))
@FreddesGCH
@FreddesGCH 8 жыл бұрын
+Chichernea Anamaria I agree
@shanukapeiris7618
@shanukapeiris7618 7 жыл бұрын
Good to learn. i enjoyed.Thank you
@RRV535
@RRV535 8 жыл бұрын
A lot of codes! Thank you for this! Subscribed
@nordxdelis2672
@nordxdelis2672 10 жыл бұрын
thank yo uso much. i have completed the tutorial and it goes very fine.. its kind of nosebleeding hahaha
@siferuk
@siferuk 10 жыл бұрын
Nice one but shouldn't you use decimal instead of double since double is not precise. For example try 0.09 * 100 then 0.09 * 99.999999
@RahulKumarRajendran
@RahulKumarRajendran 9 жыл бұрын
Thank you so much........... very much informative and interesting.
@computerfreak696
@computerfreak696 6 жыл бұрын
Great video! Thank you very much!
@lordev8956
@lordev8956 10 жыл бұрын
thank you! u helped me so much!!!
@creatur
@creatur 4 жыл бұрын
What you are doing now... If active
@midhushan3006
@midhushan3006 6 жыл бұрын
nice video its very use fully thank you very much.
@lalitchavan6972
@lalitchavan6972 5 жыл бұрын
Great !!! Thanks 4 d tutorial !
@acershhap
@acershhap 8 жыл бұрын
Dude thank you so much you are the best :)
@mma2457
@mma2457 5 жыл бұрын
very nice..please keep some explanation...
@m.s6779
@m.s6779 4 жыл бұрын
thank you for this tutorial
@knalsgtes6684
@knalsgtes6684 6 жыл бұрын
Hi Sir, the problem is that after clicking the plus(+) operator and then click the equal(=) operator it doubles the value :(
@Tbm4545
@Tbm4545 2 жыл бұрын
Ya thats how the actual calculator works. Go and cehck
@Illum1ne
@Illum1ne 7 жыл бұрын
dude you have a Notepad? i liked ur tutorial videos.
@ayexu6914
@ayexu6914 2 жыл бұрын
Very helpful thanks! :D
@johnyshow9349
@johnyshow9349 7 жыл бұрын
Thank you very much !!1 this video is a realy good!
@almersaladv2328
@almersaladv2328 3 жыл бұрын
Thanks man your smart
@dipsikharath8782
@dipsikharath8782 5 жыл бұрын
u r really superb!!!!
@preventsmanagement8539
@preventsmanagement8539 9 жыл бұрын
hey...... super...... i like it... its realy working... thank you so much :)
@itk3259
@itk3259 3 жыл бұрын
Very helpful
@Dotto19
@Dotto19 4 жыл бұрын
Thank you brother
@dcrdcrnkl1
@dcrdcrnkl1 7 жыл бұрын
Thanks so much it really helped me
@klsar1
@klsar1 9 жыл бұрын
this is incomplete. After you have pressed = to get the final number, you can still attach new figure to it by pressing any numerical button. Example - after you have done with 20 + 30 = 50, you can attach any number to the figure 50 to make it 504 or 50434 or any string that begins with 50. This is wrong.
@thewatcher1776
@thewatcher1776 8 жыл бұрын
klsar1 yea. try to use another if statement and you're good. :D
@aeternae1646
@aeternae1646 6 жыл бұрын
what kind of if statement
@Actidle
@Actidle 3 жыл бұрын
19:45 Bug 35 + 36 = 71
@nangialainoorzai3497
@nangialainoorzai3497 6 жыл бұрын
very thanks dear man Allah bless you
@osher3949
@osher3949 3 жыл бұрын
Hey i did everything like the video but its like not updating whenever im running the program? what can i do ?
@MuhammadHamza-vd2yz
@MuhammadHamza-vd2yz 6 жыл бұрын
Very helpful thanks.
@AnimalForce77
@AnimalForce77 9 жыл бұрын
thank you helped me so much cause I such a noob
@sJungbert
@sJungbert 9 жыл бұрын
great tutorial !
@patricksarrosa
@patricksarrosa 5 жыл бұрын
thank you sir!
@johnwayne3152
@johnwayne3152 9 жыл бұрын
Sir can you make a Netbeans version of this? or do you have one?
@FernandoArceOfficial
@FernandoArceOfficial 10 жыл бұрын
Thank you very much.
@levanimelikishvili5912
@levanimelikishvili5912 9 жыл бұрын
ty bro its rly works :)
@benhurex32
@benhurex32 10 жыл бұрын
hi sir can you give a tutorial on how to calculate loan with interest? :)
@harald921
@harald921 9 жыл бұрын
+Perfect .Copy Multiply with percentage. For example if you have a loan of 1000$ and there's an 10% interest. int loanAmount = 1000; float interestAmount = 0.10; // loanAmount = loanAmount + (loanAmount * interestAmount); // Simplified, but you get what I mean
@christiandanielmagallanes9287
@christiandanielmagallanes9287 8 жыл бұрын
+Harald Kanin Good answer. I would suggest to change loanAmount to a double variable to ease future decimals as result.
@narminsky
@narminsky 6 жыл бұрын
thank you very very very much
@RickTurpinScuba
@RickTurpinScuba 8 жыл бұрын
Clear steps
@anilgolakiya
@anilgolakiya 6 жыл бұрын
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.....
@mprof4478
@mprof4478 7 жыл бұрын
wow thank you so much!
@mounikakavuri5492
@mounikakavuri5492 5 жыл бұрын
sir please i want program clearly .u should do a gdd job
@shirinmz7909
@shirinmz7909 5 жыл бұрын
خيلي خوب بود سپاس
@leonardjjf
@leonardjjf 10 жыл бұрын
Good, thanks.
@kunal9999100
@kunal9999100 7 жыл бұрын
Thanks A Lot !!
@boleroquoi2954
@boleroquoi2954 Жыл бұрын
Good!!!
@adrianocelio5974
@adrianocelio5974 8 жыл бұрын
thank you!
@Santino3344
@Santino3344 5 жыл бұрын
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.
@ax-crazy
@ax-crazy 6 жыл бұрын
Thanks
@nakaharaaki6486
@nakaharaaki6486 4 жыл бұрын
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.
@bahy66
@bahy66 10 жыл бұрын
please do this 0 - 6 - 5 or 0 * 5 * 3 it will be error how to treat.
@setonmautin7630
@setonmautin7630 5 жыл бұрын
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
@carmeloparan5141
@carmeloparan5141 7 жыл бұрын
Thanks Bro. :) Very Helpful.
@Squidiyyy
@Squidiyyy 5 жыл бұрын
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?
@erdelysimon
@erdelysimon 4 жыл бұрын
Because it's button.Text
@maryamafzal6948
@maryamafzal6948 5 жыл бұрын
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?
@januar2438
@januar2438 4 жыл бұрын
Please help me. when I press a character other than + it always points to +. is there any solution?
@henrixsalenga7173
@henrixsalenga7173 9 жыл бұрын
if you may consider this request can you make tutorial for change password with database
@Sofoklesmaniac
@Sofoklesmaniac 8 жыл бұрын
Great job! But what's that background sound though? Sounds like a hair dryer lol.
@AshwiniPhalke
@AshwiniPhalke 10 жыл бұрын
Thanks....
@kitjung
@kitjung 8 жыл бұрын
THankyou
@dipeekathakur6446
@dipeekathakur6446 5 жыл бұрын
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
@BarbarosYurttagul
@BarbarosYurttagul 10 жыл бұрын
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?
@mohammedxayo5155
@mohammedxayo5155 5 жыл бұрын
when you declare the Variable make his data type integer or int
@tamagojo4498
@tamagojo4498 4 жыл бұрын
15:17 if(button.Text == ".") it doesn't work
@felixowusu1951
@felixowusu1951 4 жыл бұрын
It only adds doesn’t perform the other operations please help me out
@aeternae1646
@aeternae1646 6 жыл бұрын
how to make it so if any button is clicked after equals to the textbox is cleared
C# - Connect To Cpanel MySql Database Remotely In C#
19:39
ProgrammingKnowledge
Рет қаралды 97 М.
How to Make a Calculator in C# Windows Form Application Part-1
20:35
ProgrammingKnowledge
Рет қаралды 1 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
How to Create a C# Calculator in 25 minutes
25:22
DJ Oamen
Рет қаралды 18 М.
ASMR Programming - Calculator App Coding - No Talking
34:06
AsmrProg
Рет қаралды 5 МЛН
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 34 М.
The EASIEST Way To Build Your Mobile App In 30 Minutes (No Code)
9:56
Christian Peverelli - WeAreNoCode
Рет қаралды 245 М.
How to create a calculator in C# windows forms application
19:22
Tutus Funny
Рет қаралды 136 М.