Building a Basic Calculator in 30 Minutes using WinForms, C# and Visual Studio 2019
HTML-код
- Опубликовано: 15 сен 2024
- 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/win...
------------------------------------------------------------------
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
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..
You can find it in Form1.Designer.cs file
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"...
You can refer to the complete source code the link to which is available in description.
Thaks but, you must talk explain the code instead the music.
Sure, Thanks for the feedback.
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
Looks like you have some other extensions installed. VS doesn't enforce your for naming rules.
result.Text += (btn as Button).Text;
the code couldnt recognize the btn variable
any ideas ??
Can you elaborate more? You might want to refer to the code for which the link is mentioned in the description of this video.
too
@@TutLinks me too... txtDisplay.Text += (btn as Button).Text;
Does not recognize btn. When creating btnNum_Click method.
@@jffrost5431 Please refer to this repo. I don't see any of the message you mentioned. github.com/windson/Calculator-Winforms
@@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.
How did u use that in 27:23?
Thanks for the tutorial!
You can access it after highlighting coffee and then ctrl + k, ctrl + s
What did you do in 12:50
I didn’t know what to do there , plz help
@@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!
Next time please use mic or text to speech instead of music to make it easier to understand better.
You can use MorhpVox Voice Changer or another program that distorts voice if you don't want your real voice on YT...
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.
@@TutLinks Good for you, I guess it would have done even better if with voice explanation too...
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. 😊
16:49 I haven't got btn i couldn't write it
Can you try btn1 and see if that worked?
@@TutLinks can it be a closed variable as btn0 as in my situation
You can refer to the complete source code the link to which is available in description.
change object from sender to btn
Just would have done
Convert.ToDouble(new DataTable().Compute(txtDisplay.Text, null));
Wonderful. Thanks for the amazing tip!
@@TutLinks you're welcome. Thank you for the tutorial. :-)
@@TutLinks 16:49 I haven't got btn i couldn't write it
You'r good at Programming
Thank you. Please do subscribe for more interesting videos. 😊
@@TutLinks dear there is logic error in the code
@@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.