How to Create a C# Calculator in 25 minutes

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • How to Create a C# Calculator in 25 minutes using the Switch statement to select one of many code block to be executed. An excellent tutorial for beginner and advanced learner.
    ______________________Note: Missing Dot Codes_____________________
    if (btnDec.Text == ".")
    {
    if (!txtDisplay.Text.Contains("."))
    {
    txtDisplay.Text = txtDisplay.Text + btnDec.Text;
    }
    }
    -----------------------------------------------------------------------------------------------------------------
    Channel members download the C# Calculator source code here:
    drive.google.com/file/d/1RP2K...
    Join this channel to get access to codes, perks, and see more interesting videos. / @djoamen
    To support more videos from DJ Oamen, visit POamen Paypal
    www.paypal.me/POamen

Komentáře • 25

  • @itsyeko
    @itsyeko Před 2 lety +1

    Thank you very much, i was in a hurry to do this for a small school project!

  • @user-wd3kq4yb1i
    @user-wd3kq4yb1i Před 2 měsíci

    Thanks so much i got stuck and watching this vid helped a lot

  • @thivankawanigasekara6462

    Thank you very much Sir !

  • @abdolabdollah1783
    @abdolabdollah1783 Před 3 lety

    Thanks. Great teacher

  • @hussnainmehdi3629
    @hussnainmehdi3629 Před 3 lety

    Good .
    Keep it going.

  • @sayitopuma8061
    @sayitopuma8061 Před 2 lety

    Thank you very much

  • @orhanrafiq9463
    @orhanrafiq9463 Před 3 lety +1

    First of all, you are preparing really useful videos, my teacher.
    But I think you forgot the dot in this vido

    • @DJOamen
      @DJOamen  Před 3 lety +1

      Yes, you are right:
      Thanks, and here is the code, I will also include it as a correction on the description.
      if (btnDec.Text == ".")
      {
      if (!txtDisplay.Text.Contains("."))
      {
      txtDisplay.Text = txtDisplay.Text + btnDec.Text;
      }
      }

    • @orlazajosalyng.3161
      @orlazajosalyng.3161 Před 3 lety

      @@DJOamen
      this code worked with my program:
      if (textDisplay.Text == "0")
      {
      textDisplay.Text = ".";
      }
      else
      {
      textDisplay.Text = textDisplay.Text + ".";
      }

  • @omiorahman6283
    @omiorahman6283 Před 3 lety

    Pretty cool calculator

  • @SajjadKhan-ur5hs
    @SajjadKhan-ur5hs Před 3 lety

    Hi sir H r u? Dear sir plz make a vedio about result management system in c#

    • @DJOamen
      @DJOamen  Před 3 lety

      Already uploaded, see the links below:
      czcams.com/video/X8UNeD8Tyqk/video.html
      czcams.com/video/dYlo6M3m75Y/video.html

  • @mitchellsottile8358
    @mitchellsottile8358 Před 2 lety

    thanks boss

  • @caaqilyare9759
    @caaqilyare9759 Před 3 lety

    Nin adg ba thy nio 🙏🙏 niicle wey kugu faiiday io zaacid 🤗

  • @rhonamaghinay4958
    @rhonamaghinay4958 Před 2 lety

    struggle is real 😵 i cant find were the toolbox is .. 😭😭😭

    • @DJOamen
      @DJOamen  Před 2 lety

      Select Window Menu and The click on Reset Windows Layout and click on YES