C# Tutorial - Create a number guessing game in Windows Form Application and Visual Studio
HTML-код
- Опубликовано: 8 фев 2025
- Source Code - www.mooict.com...
In this tutorial we will explore how to properly work with the components such as labels, buttons and text boxes inside of windows form applications and how they communicate with the c# programming code in the background. This will be a building block application for beginners who want to learn how to make simple and fun applications inside of visual studio while getting up to speed with some basics of programming.
Thank you so much! My professor is largely unhelpful. Helped me tremendously with my homework.
I’m glad it helped ☺️
Thanks from Türkiye. Once you start the application, it works without any problems.
You are welcome 🙏
Truly one of the best videos I’ve ever watched as far as instructional on c#. I was crying at my kitchen table trying to figure this out (networking major who HAS to take at least 2 programming classes) and I found this and MY PROGRAM WORKS!! the only thing I wish was added would be a try-catch statement for this but still, AMAZING!! Thank you so much!!
This has to be the best comment I’ve received on this channel. Thank you 🙏. Keep on coding friend
Thanks for the awesome tutorials. I recently started learning how to program and your videos and blogs are really helping a lot!
Thanks a lot man!! U explain things so much better!!!
thank you so much you are amazing you made it fast and efficient❤‼️
You’re welcome 😊
Did you get a new microphone? Love it!
Haha you noticed. Yes it's the new microphone. Thank you.
@@mooict what mic did You get moo ict
thank you it was the best!!!!
This is good for maths!
Thx dude
AKU JUMPA. MANTAP
Hi, and thanks for your excellent tutorials. We can continue this tutorial by adding a keypress event for the textbox to make sure that it only allows numbers, and to allow the backspace to delete the input
something like this:
private void allowNumbersOnly(object sender, KeyPressEventArgs e)
{
if ((!char.IsNumber(e.KeyChar)) && (!char.IsControl(e.KeyChar)))
{
e.Handled = true;
}
}
And, another protection from crashing is by putting all the code inside the checkNumber method inside an if statement that checks whether in input field is empty or not: if (txtEnterNumber.Text != "").....
That's a very neat solution 👍. Thanks
what mic did You get moo ict
I got the Tonor TC30 microphone
Hey could you please make a simulation type game. For example a football simulator, where you can put two teams against each other and then the program would simulate the result. This would be so helpful. If you want me to go into more detail then please let me know! I have subscribed too(with notifications) 😊👍🏼
deasx