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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ค. 2024
  • 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#

ความคิดเห็น • 197

  • @Eincrou
    @Eincrou 9 ปีที่แล้ว +31

    A small tip that might help others: when the button_click event handler needs to be copied to the rest of the number keys' Click event, you can Ctrl+LeftClick on each button in the form designer. By selecting multiple buttons at a time, you can add button_click into the Click event in the Properties window and it applies to _all_ of the buttons you had selected.

    • @Soohable
      @Soohable 8 ปีที่แล้ว +1

      +Eincrou Interesting. I will try that.

  • @adrianv.1636
    @adrianv.1636 4 ปีที่แล้ว +17

    Super clear and easy to follow! Thanks for helping million studends around the world!

  • @youpattube1
    @youpattube1 7 ปีที่แล้ว +4

    Very informative. Thank you. I like your teaching style ; patient and un-hurried.

  • @JimVincitore
    @JimVincitore 8 ปีที่แล้ว

    Cool app. i taught college computer programming various languages off and on for about twenty years. I used this calculator app as the final for introductory courses! It's just amazing what you can do in the Properties pane these days! Great job!

  • @Eincrou
    @Eincrou 9 ปีที่แล้ว +2

    Thanks for this app walkthrough. I have very limited formal instruction in programming (from 12 years ago) and I'm trying to teach myself C# from textbooks. It's nice to have a guided exercise to practice with. I try to see if I know what needs to be done before you mention it.

  • @benitajonah4989
    @benitajonah4989 4 ปีที่แล้ว +9

    Thank You. I was able to get my assignment done before class.

  • @tagelassefa
    @tagelassefa 9 ปีที่แล้ว +3

    Really great Videos, thank you very much keep up the good work!

  • @SandraManssson
    @SandraManssson 6 ปีที่แล้ว +2

    Thanks to you I can do my homework for school. :-) I was afraid I couldn't do that because it seems so difficult but now I can see no problem. I like it. So thank you !

    • @nilen
      @nilen 4 ปีที่แล้ว

      truly a rebell

  • @bluegangstatv8896
    @bluegangstatv8896 8 ปีที่แล้ว +1

    Thanks for this valuable piece of knowledge. Subbed and liked.

  • @varunemani
    @varunemani 9 ปีที่แล้ว +1

    Thanks. Good knowledge on c#.

  • @anupamadhermal2572
    @anupamadhermal2572 3 ปีที่แล้ว +2

    I m a BCA student.And, due to covid we got no practical sessions 🙄. (*lokdwn, reporting cases @clg, then closing for a week and so ). When exams hit, I was in a panic..I studied through your video.This video was awesome, superb, lifesaver😂👌😭
    ....... Thank you❤️

  • @totteold
    @totteold 9 ปีที่แล้ว +14

    Tip: Instead of clicking through all buttons to add click operators, you can shift or drag select all the buttons and add "button_click" or "click_operator". Make sure you mark the correct buttons for the right operator tough.

  • @idontusethischannelanymore8828
    @idontusethischannelanymore8828 9 ปีที่แล้ว +2

    AWESOME!!!!

  • @harshidjethwa6343
    @harshidjethwa6343 8 ปีที่แล้ว +8

    perfect but need explaination for your codes

  • @TranNguyen-mv6ln
    @TranNguyen-mv6ln 2 ปีที่แล้ว

    Your lesson is helpful

  • @csscoder9964
    @csscoder9964 4 ปีที่แล้ว

    Thank u soooooo muchhhh sir. You are great

  • @reymonchoudhary5848
    @reymonchoudhary5848 3 ปีที่แล้ว +8

    Please give me part 2 tutorial..❤❤

  • @spbs-th1kw
    @spbs-th1kw 4 ปีที่แล้ว +3

    Informative tutorial !
    but i m facing problem when i was run my project, i click any no like 0 , 2 so on then show me as an output on textbox "System.Windows.Forms.TextBox, Text: 00 "
    give guidance plz...

  • @polytechbadi8591
    @polytechbadi8591 5 ปีที่แล้ว

    Thank you so much

  • @ahmdhadi7493
    @ahmdhadi7493 2 ปีที่แล้ว +1

    Thanks :)

  • @GomotsegangNtehelang
    @GomotsegangNtehelang 9 ปีที่แล้ว

    GR8 stuff. Just subscribed, now i hope to learn how to make a web browser :)

    • @Umar-qu9wf
      @Umar-qu9wf 4 ปีที่แล้ว

      Inshallah, you will!

  • @usama57926
    @usama57926 5 ปีที่แล้ว +2

    thank u much information

    • @FaaizPro
      @FaaizPro 5 ปีที่แล้ว

      th-cam.com/video/oJt2FnN0_sM/w-d-xo.html

  • @usama57926
    @usama57926 5 ปีที่แล้ว +1

    not complete video but still a video has much information

    • @FaaizPro
      @FaaizPro 5 ปีที่แล้ว

      th-cam.com/video/oJt2FnN0_sM/w-d-xo.html

  • @6a3ykachannel
    @6a3ykachannel 5 ปีที่แล้ว

    Thanks dude

  • @mAAnRoyComputer
    @mAAnRoyComputer 3 ปีที่แล้ว

    you use much time for making this application

  • @Ankitbaghel706
    @Ankitbaghel706 3 ปีที่แล้ว

    Thank you so much sir

  • @emildinkov5324
    @emildinkov5324 2 ปีที่แล้ว

    thank u man u saved me

  • @logicaltroller
    @logicaltroller 6 ปีที่แล้ว

    can any one help me out from taking data from one textfield in java and add it for example i want to add many values textfield1(2+2+2+4) and result shows in other field

  • @enzymepc14kay32
    @enzymepc14kay32 ปีที่แล้ว

    Thanks so much MAN

  • @XpertPilotFSX
    @XpertPilotFSX 8 ปีที่แล้ว +8

    16:33 - could you please explain that to me again? I dont really understand the syntax and what it means.

  • @ARATHINIBIN.
    @ARATHINIBIN. 6 ปีที่แล้ว

    Hi..what if I need to perform multiple calculations in a stretch?for example 3+2+4×2..how can this be performed..pls reply..

  • @usama57926
    @usama57926 5 ปีที่แล้ว +1

    thank u sir

    • @snaggerlee3582
      @snaggerlee3582 4 ปีที่แล้ว +1

      Thank you for your valuable set of knoweledge you help mie a lot i appreciate

  • @shivamguptaclasses9056
    @shivamguptaclasses9056 3 ปีที่แล้ว

    thank you sir,
    sir how we sum, subtract and other operation of negative numbers in calculator ?
    please make on this video

  • @dmitrybaranov9374
    @dmitrybaranov9374 6 ปีที่แล้ว +2

    your code's nice, and you could have made it a little easier, writting like this: textBox1.Text += (sender as Button).Text; and paste to events of another digital buttons button1_click, like you hve done

  • @hansisenavirathne9670
    @hansisenavirathne9670 ปีที่แล้ว

    Thank you

  • @samuelwechdorn4733
    @samuelwechdorn4733 9 ปีที่แล้ว

    thanks

  • @NestedMango
    @NestedMango 5 ปีที่แล้ว +1

    Great tuto..Sir...By using C# We can Make 2d and 3d game on Unity game engine. Unity is free.

  • @bambabmbye
    @bambabmbye 5 ปีที่แล้ว

    Good video I wish it was completed, how can I have the rest of the information.

  • @Rej-dx8um
    @Rej-dx8um 4 ปีที่แล้ว

    nice love it

  • @lianedelosreyes1248
    @lianedelosreyes1248 3 ปีที่แล้ว

    Broo thanks!

  • @user-qi1ex4ib5j
    @user-qi1ex4ib5j 9 ปีที่แล้ว

    Interesting :)

  • @jessicalourdesramirezespan2213
    @jessicalourdesramirezespan2213 9 ปีที่แล้ว

    disculpa como puedo programar en visual una imagen echa en flash para q me de movimiento en windows form c#?

  • @AHSArnulf
    @AHSArnulf 3 ปีที่แล้ว +1

    the code is completely different when i click the buttons to perform the button click event. Its not similar at all it says private sub instead of void and has 10 lines of code before the click event. Besides that when i do the Button button = (sender) etc it says its not valid...

  • @christinechidotongesai1617
    @christinechidotongesai1617 4 ปีที่แล้ว

    wonderfull

  • @gggboxing3788
    @gggboxing3788 9 ปีที่แล้ว +1

    ProgrammingKnowledge please add tutorial C#

  • @aqsagul2917
    @aqsagul2917 6 ปีที่แล้ว

    How we do it practically.. How to make its programming as in input form after printed we see our created calculator

  • @GodBurstPk
    @GodBurstPk 5 ปีที่แล้ว +3

    8:07 Usten we are ready for lift off...

  • @quickduck1282
    @quickduck1282 5 ปีที่แล้ว

    nice !!!

  • @kiranam8513
    @kiranam8513 3 ปีที่แล้ว +2

    is this tutorial using an OOP concept?

  • @mitalisharma6613
    @mitalisharma6613 6 ปีที่แล้ว

    Can you program a calculator with 3 text boxes n with number buttons?

  • @sonyfonex6406
    @sonyfonex6406 9 ปีที่แล้ว

    thank you so muchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

  • @gardencityplastererslimite4261
    @gardencityplastererslimite4261 4 ปีที่แล้ว

    System.ArgumentException: 'Delegate to an instance method cannot have null 'this'.'
    please can you help me why this is coming up when i run it

  • @kriswingateshellsing407
    @kriswingateshellsing407 8 ปีที่แล้ว +2

    you forgot something bro .. the DOT have to have a line for itself because if i do as you say i wouldnt be able to input 0.1 .. cuz the 0 gets cleared
    it should be like this
    namespace CALC
    {
    public partial class ACCCALC : Form
    {
    public ACCCALC()
    {
    InitializeComponent();
    }
    private void Button_Click(object sender, EventArgs e)
    {
    if (ResultBox.Text == "0")
    ResultBox.Clear();
    Button button = (Button)sender;
    ResultBox.Text = ResultBox.Text + button.Text;
    }
    private void Button_ClickDot(object sender, EventArgs e)
    {
    ResultBox.Text = ResultBox.Text + ".";
    }
    }
    }

    • @Kenji-ug5bo
      @Kenji-ug5bo 6 ปีที่แล้ว

      why didn't you just do another video then XD

  • @Dandanukadan
    @Dandanukadan ปีที่แล้ว

    Nice tutorial where is part ii?

  • @kelvinmama1447
    @kelvinmama1447 3 ปีที่แล้ว

    After clicking the windows form application on VSCode, the box is not what loading but the code instead. Pls can u help me with that

  • @abdullahiabdimohamudoffici2372
    @abdullahiabdimohamudoffici2372 6 ปีที่แล้ว

    thks all af you to heply

  • @imnothere-uy6gn
    @imnothere-uy6gn ปีที่แล้ว

    old but gold

  • @irnm1947
    @irnm1947 4 ปีที่แล้ว

    Somebody please help me when I'm writing
    Textbox.Text = Textbox.Text + button.Text; I'm getting an error on button.Text as it says Button doesn't contain a definition for 'Text' the accepting and jo accessible extension method 'Text' the accepting accepting a first argument of type 'Button' could be found.

  • @ketovix2558
    @ketovix2558 4 ปีที่แล้ว +2

    What app are you using to make the calculator...

    • @1bouch
      @1bouch 3 ปีที่แล้ว

      he use visual studio

  • @roma.senatosu
    @roma.senatosu 3 ปีที่แล้ว +1

    why everyone is using visual studio to make gui apps.. why don't they make gui apps just by coding? if so no one need to learn HTML and CSS because there are other web apps to make websites.

  • @pakgeochannel8419
    @pakgeochannel8419 5 ปีที่แล้ว

    jesa TV ke screen par logo working kar tea hai vo coding software kase banea gea ose kea coding kea hai computer screen par working kare

  • @sophiakostavas8360
    @sophiakostavas8360 3 ปีที่แล้ว

    working

  • @sonaldave4202
    @sonaldave4202 6 ปีที่แล้ว

    programmingKnowledge
    It is addressed herein are the only.

  • @saaaaaamy
    @saaaaaamy 9 ปีที่แล้ว +1

    Can you put the sources of this please?

  • @helucz4772
    @helucz4772 6 ปีที่แล้ว

    Part 1- Design little Scripting filling events Part 2-Full Scripting filling events more

  • @anadibrothers-yourwaytorel5259
    @anadibrothers-yourwaytorel5259 4 ปีที่แล้ว

    i don't know what is that right srtange thing that you type in the code. i mean that d in the code.

  • @gefalt
    @gefalt 8 ปีที่แล้ว +14

    what did you mean with this code? Button button = (Button)sender;

    • @vladd9080
      @vladd9080 6 ปีที่แล้ว +1

      As sender is the button that triggered the event, you are creating a object of the same button class and typecasting the button object and assigning to a local object, then accessing it's properties.
      This is useful if you have many objects using the same event handler.

    • @FaaizPro
      @FaaizPro 5 ปีที่แล้ว

      th-cam.com/video/oJt2FnN0_sM/w-d-xo.html

    • @ragtop63
      @ragtop63 5 ปีที่แล้ว

      Dont click on FaaizPro's comment. It's spam and they are just trying to get views from it.

    • @ragtop63
      @ragtop63 5 ปีที่แล้ว

      @@vladd9080
      Can you please explain further. Possibly break down what each component of that line means? Thanks!

  • @gk1793
    @gk1793 7 ปีที่แล้ว

    using this code i found one little bit mistake that is
    when i click any button (1,2,3 etc) it takes a value twice
    plz help me out sir.....

  • @YukiGersaniba
    @YukiGersaniba 4 ปีที่แล้ว +4

    Hey, I can't seem to do 13:53 because I can't find that piece of code in Visual Studio.
    Edit: Doesn't matter, I found the way to do it!

    • @nandanabhaktikhaer4543
      @nandanabhaktikhaer4543 4 ปีที่แล้ว

      how to do it?

    • @YukiGersaniba
      @YukiGersaniba 4 ปีที่แล้ว +1

      nanda bakti you need Windows Forms.
      By the way, thanks for bringing me back to this old comment!

  • @prasadshete2639
    @prasadshete2639 6 ปีที่แล้ว +1

    sir how to download c# ..
    . and this can run in windows XP

    • @novaplum1617
      @novaplum1617 6 ปีที่แล้ว +4

      lmao is this for real? Why the hell are you using that old OS? Do you also communicate to your loved ones via smoke signals and paint pictures on the walls of caves?

    • @L0uk0umaki
      @L0uk0umaki 6 ปีที่แล้ว +1

      lol

  • @hamisayahya9645
    @hamisayahya9645 3 ปีที่แล้ว

    Thankx a lot .but the video is not finish

  • @muratkhan794
    @muratkhan794 4 ปีที่แล้ว

    Which framework were used in this tutorial Please answer

  • @nagarajuvaranasi3374
    @nagarajuvaranasi3374 6 ปีที่แล้ว

    what is the use of Button

  • @saditrahman619
    @saditrahman619 7 ปีที่แล้ว

    Button btn = (Button)sender;
    textBox_Result.Text = textBox_Result.Text + btn.Text;
    why did you use "(Button)Sender"?
    can you explain that again?
    i am looking forward for an explanation

  • @iz0n486
    @iz0n486 3 ปีที่แล้ว

    i don't understand what he is saying but i understand what he is doing...

  • @lynv5943
    @lynv5943 6 ปีที่แล้ว +2

    iken

  • @ProfessionalDesi
    @ProfessionalDesi 8 ปีที่แล้ว

    send me the link from where i can download that program !

    • @specieschild1
      @specieschild1 8 ปีที่แล้ว +1

      +Usama Qasim you don't need to download , you need to make your own

    • @FaaizPro
      @FaaizPro 5 ปีที่แล้ว

      th-cam.com/video/oJt2FnN0_sM/w-d-xo.html

  • @giovannirutigliano6543
    @giovannirutigliano6543 8 ปีที่แล้ว +1

    icin

  • @yusufsuererdem3756
    @yusufsuererdem3756 6 ปีที่แล้ว

    Sir, i would like to ask a question;
    i can not do double type operations. for example;
    i want to this operation 3.2 + 3 = 6.2 but on the label it appears like 32 + 3 =35.
    i did the same things like you. at where am i wrong? can you help me? thanks,
    also thanks for the video, it is great :)

    • @Love4Hardstyle
      @Love4Hardstyle 6 ปีที่แล้ว

      try using decimal or float

    • @yusufsuererdem3756
      @yusufsuererdem3756 6 ปีที่แล้ว

      Thanks, i put comma and i solved it. Actually i asked this mounts ago 😁😁😁

  • @waqarazeem1090
    @waqarazeem1090 7 ปีที่แล้ว

    whats se off any loop in a calculator

  • @vijaygupta7066
    @vijaygupta7066 7 ปีที่แล้ว

    how can make same thing on window 10 os

  • @hannukoistinen5329
    @hannukoistinen5329 2 ปีที่แล้ว

    Basically I suddest you go back do Calcudda driving a daxi.

  • @mrego3876
    @mrego3876 6 ปีที่แล้ว

    which software name...?

  • @GuentherHaxn
    @GuentherHaxn 4 ปีที่แล้ว

    it's the Indian guy!

  • @novasupr
    @novasupr 7 ปีที่แล้ว +2

    to clear the 0...this worked for me
    if (txtResult.Text == "0")
    txtResult.Text = String.Empty;

  • @brk9328
    @brk9328 2 ปีที่แล้ว

    how to calculate modulus on this

  • @omgdodogamer4759
    @omgdodogamer4759 5 ปีที่แล้ว

    How do I make a design?

  • @baland3986
    @baland3986 9 ปีที่แล้ว +1

    nise video but idont have visual

    • @Kenji-ug5bo
      @Kenji-ug5bo 6 ปีที่แล้ว

      50 gb ONLY

    • @coughman9833
      @coughman9833 5 ปีที่แล้ว

      @@Kenji-ug5bo you don't need to download all of 50 gb

  • @mariammadil7156
    @mariammadil7156 7 ปีที่แล้ว

    Where to complete the explanation??!!

  • @sharaths.p4355
    @sharaths.p4355 6 ปีที่แล้ว

    Is the coding done in C++ or C-Sharp?? Anyone plz tell me

    • @ginon642
      @ginon642 5 ปีที่แล้ว +1

      C# brother

    • @sharaths.p4355
      @sharaths.p4355 5 ปีที่แล้ว

      Gino N Thanks buddy😊😊

  • @shivamguptaclasses9056
    @shivamguptaclasses9056 3 ปีที่แล้ว

    Part two video =th-cam.com/video/X67eC9jf2uE/w-d-xo.html

  • @bjrp1291
    @bjrp1291 ปีที่แล้ว

    0System.Windows.Forms.Button, Text: 1 whys this showing on the text box when i click the button????

  • @fgnnbggb.n8886
    @fgnnbggb.n8886 ปีที่แล้ว

    This activity task is worth 100 points 😭

  • @Kenji-ug5bo
    @Kenji-ug5bo 6 ปีที่แล้ว

    nice video but could have been shortened by practicing it first XD it was quite too long and it got a little boring no offence just stating

  • @furqanuddin901
    @furqanuddin901 3 ปีที่แล้ว

    This is very helpfully for me but this is not complete😩

  • @kanzayahya3775
    @kanzayahya3775 7 ปีที่แล้ว

    +ProgrammingKnowledge mra nae aa rha mra buttons get krny ki bjaye buton word print kr rha :(

  • @stfbrasil1989
    @stfbrasil1989 2 ปีที่แล้ว

    É bem normal né....
    Inclusive, quanto pior é melhor.

  • @shwekham946
    @shwekham946 6 ปีที่แล้ว

    you can help me

  • @theunfinishedbusiness2407
    @theunfinishedbusiness2407 3 ปีที่แล้ว

    i see you have some knowledge about arduino 3:20

  • @euzuegaming
    @euzuegaming 2 ปีที่แล้ว

    how to use delegate?