ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Building a Basic Calculator in 30 Minutes using WinForms, C# and Visual Studio 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ค. 2019
  • In this video tutorial, we will focus on how to design a layout for minimal calculator app which will be built using Microsoft's Windows Forms.
    We will concentrate more about how to adjust and fit in various controls like Button, TextBox and Table Layout Panel and its spacing, adjustment rather than on the calculator logic.
    Windows Forms often called as WinForms is a .NET's revolutionary framework for building Windows Applications. It has grown its popularity over the years due to its flexibility and still is a strong contender in the windows application development space to WPF (Windows Presentation Foundation).
    -------------------------------------------------------------------
    ❣ Complete Source Code: github.com/windson/Calculator...
    ------------------------------------------------------------------
    Subscribe ❤ to this channel if you like 👌 the content.
    / @tutlinks
    -------------------------------------------------------------------
    ❤ Follow us: ❤
    / tutlinks_com
    / tutlinksdotcom
    / tutlinkscom-6501655421...
    --------------------------------------------------------------------
    Thanks 🙏
    ------------------------------------------------------------------------------------------------
    🆂🆄🅱🆂🅲🆁🅸🅱🅴 to 🆃🆄🆃🅻🅸🅽🅺🆂 channel if you like the content.
    🆂🆄🅱🆂🅲🆁🅸🅱🅴: bit.ly/2Y0ZunB
    Share this video with your friends and colleagues and let them know you are upto date with latest tech-trends
    Follow us:
    Facebook: bit.ly/2Djmd6l
    Twitter: bit.ly/2Ol9ZQT
    Instagram: bit.ly/2pV4cYY
    Support:
    (Appreciate your Generosity: 💸)
    PayPal: bit.ly/2NZgVma
    ETH: 0x0689Ecd747d6F4eA9CE491aD0b1734fEe62b2229

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

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

    At 17:48 You are opening a list wih this. settings how can I open this, because I do not have a 1 reference link that I can click on..

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

      You can find it in Form1.Designer.cs file

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

    How did u use that in 27:23?
    Thanks for the tutorial!

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

      You can access it after highlighting coffee and then ctrl + k, ctrl + s

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

    Thaks but, you must talk explain the code instead the music.

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

      Sure, Thanks for the feedback.

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

    I changed my methods name from btnAdd_Click to BtnAdd_Click because it said Naming Rule Violation, has to be capital. Then i clicked back on my Form1.cs and it clicked ignore and continue on the error and it deleted EVERYTHING from my design. Buttons, =, + , etc are all gone

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

      Looks like you have some other extensions installed. VS doesn't enforce your for naming rules.

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

    I haven't got btn i couldn't write it
    Most of people got his error because you didn't mentioned that we have to change the object from "sender" to "btn"...

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

      You can refer to the complete source code the link to which is available in description.

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

    Just would have done
    Convert.ToDouble(new DataTable().Compute(txtDisplay.Text, null));

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

      Wonderful. Thanks for the amazing tip!

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

      @@TutLinks you're welcome. Thank you for the tutorial. :-)

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

      @@TutLinks 16:49 I haven't got btn i couldn't write it

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

    Next time please use mic or text to speech instead of music to make it easier to understand better.

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

      You can use MorhpVox Voice Changer or another program that distorts voice if you don't want your real voice on YT...

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

      Thanks for the feedback. The fun fact, this is the second most watched video with higher retention rate among all other videos of this channel so far.

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

      @@TutLinks Good for you, I guess it would have done even better if with voice explanation too...

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

      Agreed. There might be a chance. My perception while making this video was "Why am I even doing this?". I justified myself that I will be designing winform controls in a Responsive UI layout, that self adjust screen. 😊

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

    result.Text += (btn as Button).Text;
    the code couldnt recognize the btn variable
    any ideas ??

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

      Can you elaborate more? You might want to refer to the code for which the link is mentioned in the description of this video.

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

      too

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

      @@TutLinks me too... txtDisplay.Text += (btn as Button).Text;
      Does not recognize btn. When creating btnNum_Click method.

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

      @@jffrost5431 Please refer to this repo. I don't see any of the message you mentioned. github.com/windson/Calculator-Winforms

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

      @@TutLinks Yeah I went over it... Don't understand how it can be that in your vid. you're not getting the same error.
      Otherwise great video :) I'm still trying to complete my calculator.. hehe
      Somehow "btn" is legit in your vid.
      Maybe it's something you did when you replaced btn1 with btnNum - in designer and then on the form.

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

    You'r good at Programming

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

      Thank you. Please do subscribe for more interesting videos. 😊

    • @someone-zl8yq
      @someone-zl8yq 4 ปีที่แล้ว +1

      @@TutLinks dear there is logic error in the code

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

      @@someone-zl8yq yes. Agreed. This is not circumvented with unit tests. The main aim is on winforms design of calculator UI. Feel free to fork the mentioned github repo mentioned in the description of this video.

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

    16:49 I haven't got btn i couldn't write it

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

      Can you try btn1 and see if that worked?

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

      @@TutLinks can it be a closed variable as btn0 as in my situation

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

      You can refer to the complete source code the link to which is available in description.

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

      change object from sender to btn

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

    What did you do in 12:50

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

      I didn’t know what to do there , plz help

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

      @@FoosefK I hit Ctrl + Z (undo). The popup hinted that the changes in the designer file also get affected if I proceed with Undo and they are irreversible. Hope that helps!