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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

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

  • @Eincrou
    @Eincrou 10 ปีที่แล้ว +36

    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.

  • @totteold
    @totteold 10 ปีที่แล้ว +16

    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.

  • @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❤️

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

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

  • @Eincrou
    @Eincrou 10 ปีที่แล้ว +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.

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

    Please give me part 2 tutorial..❤❤

  • @thecodekitten
    @thecodekitten 5 ปีที่แล้ว +9

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

  • @SandraKratka
    @SandraKratka 7 ปีที่แล้ว +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

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

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

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

    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!

  • @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

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

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

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

    you use much time for making this application

  • @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

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

    perfect but need explaination for your codes

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

    Your lesson is helpful

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

    Nice tutorial where is part ii?

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

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

  • @spbs-th1kw
    @spbs-th1kw 5 ปีที่แล้ว +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...

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

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

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

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

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

    is this tutorial using an OOP concept?

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

    old but gold

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

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

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

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

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

    Thanks :)

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

    thank u man u saved me

  • @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.

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

    Thanks. Good knowledge on c#.

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

    not complete video but still a video has much information

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

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

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

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

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

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

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

      he use visual studio

  • @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!

  • @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!

  • @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...

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

    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!

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

    Thanks so much MAN

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

    Thank you

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

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

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

    Thankx a lot .but the video is not finish

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

    Can you put the sources of this please?

  • @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

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

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

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

    Thank u soooooo muchhhh sir. You are great

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

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

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

    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..

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

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

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

    ProgrammingKnowledge please add tutorial C#

  • @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

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

    put on 1.5x speed

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

    Thanks dude

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

    what is the use of Button

  • @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.....

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

    Thank you so much

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

    Where to complete the explanation??!!

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

    Which framework were used in this tutorial Please answer

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

    it's the Indian guy!

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

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

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

    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

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

    i see you have some knowledge about arduino 3:20

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

    You should put the file in description not code.

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

    thanks

  • @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

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

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

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

    Where is part 2?

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

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

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

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

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

    how to use delegate?

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

    how to calculate modulus on this

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

    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

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

    Broo thanks!

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

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

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

    which software name...?

  • @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

  • @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

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

    thank u much information

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

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

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

    working

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

    How do I make a design?

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

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

    • @specieschild1
      @specieschild1 9 ปีที่แล้ว +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

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

    thank u sir

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

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

  • @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.

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

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

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

    nice love it

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

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

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

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

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

    to me text box is mising i dont have it at toolbox

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

      Try reinstalling your Visual Studio

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

      Umm what is your version compare to him

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

    programmingKnowledge
    It is addressed herein are the only.

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

    whats se off any loop in a calculator

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

    how can make same thing on window 10 os

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

    second line .text; error

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

    thank you so muchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

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

    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 😁😁😁

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

    It doesnt work in 2021 so find another video

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

    nise video but idont have visual

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

      50 gb ONLY

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

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

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

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

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

      C# brother

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

      Gino N Thanks buddy😊😊

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

    you can help me

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

    this guy uses underscores "_" in C# what a programmingnoob

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

    AWESOME!!!!

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

    thks all af you to heply

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

    Bhai muze koi sub de na c language ka mera project hai jisme hume apne ideas use karne hai

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

      Yoo....hindi boiii use english know one knows your stupid language!