
Download the source files zip from the resources section and follow along with the start files, or build the form yourself and consult the Q&A if issues arise.
Build a Windows Forms stopwatch app with start, stop, and exit controls. Display the start and end times and calculate elapsed time in seconds.
Create a Windows forms stopwatch in C# that starts a timer, records start and stop times, and displays elapsed seconds using three buttons and three text boxes with labels.
Wire the start button to capture the current DateTime, compute elapsed time with TimeSpan, and display the start and elapsed times in text boxes in a WinForms stopwatch.
Learn how to build a stopwatch in WinForms by handling button click events, capturing start and end times, calculating elapsed time in seconds, and displaying results in text boxes.
Display the current date, year, and day of the week with a live time updated every second using a WinForms timer and five labels; practice date-time formatting.
Create a winforms form with five labels for day of week, time, month, day of month, and year, and a start button to display the date at center screen.
Implement a WinForms timer to show live date and time updates, using a 1-second interval and labels to display day of week, month, year, and time.
learn how to display a running time in a label by using a timer tick event, starting the timer on button click, and updating the date and time every second.
Build a bank account calculator in C# WinForms by entering monthly deposits, interest rate, and months, validating numeric input, and computing the final balance with calculate, clear, and exit buttons.
Create a WinForms bank form with four text boxes for deposit, yearly interest, months, and final balance; add labels and three buttons (calculate, clear, exit) centered on the form.
Create a button click event to clear all text boxes by assigning empty strings, then refocus the deposit box for immediate data entry in a Visual C# WinForms beginner project.
Learn to validate numeric input in WinForms text boxes by handling key press events, permitting digits, a single decimal point, backspace, and enter to move focus.
Implement key press events in a WinForms app to validate interest and months inputs, allowing decimal for interest and digits for months, and move focus on enter to calculate balance.
Read deposit, interest, and month values, convert to numbers, compute final balance with the monthly formula, and validate inputs with a C# WinForms message box.
Demonstrate object oriented programming concepts in WinForms by creating classes with constructors, properties (including validation), methods, and inheritance with method overriding, using a multiline text box for output.
Learn to implement object oriented programming with Windows Forms by creating a form, adding a multiline text box with vertical scroll bars, and hardcoding display of class data on load.
Create a separate colors class, declare it public, instantiate it with new, and access its public properties like color type and color brightness from a WinForms form.
Expose private fields via public properties to access and set color type and color brightness with getters and setters, or use auto properties when no validation is needed.
Validate and set properties in a WinForms C# project using a switch to normalize input to uppercase and assign color types, with a default message box for invalid colors.
Add a public describe color method in the colors class to output color type and brightness as text, converting brightness to string, and display it in the text box.
Explore adding a public compare colors method that evaluates color brightness against a default brightness, with conditional messages and textbox appends, then extend with inheritance.
Explore inheritance in c# winforms by deriving a special colors class from colors, overriding a virtual color type to allow white, and extending methods while preserving base behavior.
Explore creating custom controls for Windows Forms by deriving from existing controls, building a numeric text box with properties for decimals, negatives, and integers in an object oriented programming approach.
Create a Windows Forms control library for a numeric text box and inherit from text box. Add the library to the toolbox and test on a form.
Add two boolean properties, has decimal and has negative, as auto properties defaulting to true and false, categorized under behavior to control accepted keystrokes in a numeric text box.
Implement a key press event for a custom text box to accept only digits, backspace, and an optional decimal point, with optional negative support.
Add a custom numeric text box to a bank account project, replacing key-press events with inherited properties to enforce decimals for deposits and interest and integers for months, reducing code.
Create a custom WinForms label control by inheriting from the label, implement flash behavior with a code-driven timer, and wire start/stop actions to two buttons.
Create a custom flashing label by inheriting from the label, use a timer to toggle back color between white and red, and set border style to fixed 3d.
Create start flash and stop flash methods to control a label's flashing by enabling and disabling timer, with a tick event that toggles the label color between red and white.
Add a custom flashing label control to a WinForms project, wire start and stop buttons to its start flashing and stop flashing methods, and test the timer-driven behavior.
Create a mortgage payment calculator class and extend it with inheritance for accelerated payments, using constructors with arguments, a base class constructor, and implementing properties and methods to expose results.
Build a mortgage class in a WinForms project, with a constructor and private fields for loan amount, interest, and years, plus methods to compute monthly and total payments.
Create a mortgage calculator in a WinForms app by passing loan amount, interest, and years into a mortgage object, then display monthly and total payments in text boxes.
Develop an accelerated mortgage class in C# that inherits from the mortgage class, adds a number of payments, and overrides total payment calculation to compute accelerated monthly payments.
Learn how to implement inheritance from a mortgage base class in Visual C# with WinForms by building an accelerated mortgage with a flexible number of payments, properties, and overridden methods.
Create an accelerated mortgage instance to demonstrate inheritance from a base mortgage class, access regular and accelerated payments and total payments, and override methods and properties in a WinForms app.
build a WinForms app that uses a while loop to add consecutive odd integers until the sum exceeds a target, then display the total and how many numbers were added.
Create a WinForms main form, add a custom numeric text box, two read-only text boxes for target sum and number of integers, and a button to compute the sum.
Implement a while loop to sum odd integers toward a target sum by initializing variables, converting text box input to integers, incrementing by two, and displaying the final sum.
Calculate the penny total after a user-specified number of days as pennies double daily, using a custom text box for integer input, and switch to long integers to prevent overflow.
Build a visual c# winforms form by naming the main form, adding a pennies a day button, a read-only total text box, and a numeric days input with decimals disabled.
Double the penny count each day by looping from day two to the user-specified total, starting with one penny and a running sum, and display the final total.
C# programmers are highly in demand for corporate and government projects. So, congratulations on choosing to learn this amazing language. :-)
But as it is often the case among beginners, the struggle to put into practice the theoretical concepts and language syntax is very real. How do you implement your knowledge into actual projects? How do you practice without feeling like you're running in the circles without ever moving forward to intermediate level? You turn on Visual Studio and then...you just stare at it the same way a painter stares at a blank canvas. But fear not! With this course, you can learn to eliminate your fear of code! And all it takes is a little practice and determination. And that’s where this course will help you greatly!
The course goes over variety of C# programming projects. I show you how to put the theory you learned into practice by showing you how to solve each exercise and walking you through all the Why’s and How’s.
Because the course is all about practice, some of the concepts are repeated across multiple exercises. The course is not meant to follow any particular guidline where each exercise builds up on the previous one, but rather serves as a comprehensive reference, allowing students to skip exercises if they are already familiar with the concept in those exercises.
In the process, you will learn a alot about C# language and Windows Forms. You will learn how to translate the project requirements into a working code. You will learn to use many different basic programming concepts, such as Conditional Statements, Loops, Arrays, OOP, … and pick the right one for your solution. But above all, you will learn to think like a programmer!
This course is all about practice. Therefore, to benefit from this course, you need to be an active student. It doesn't matter if you are self-taught or attend a programming course. What matters is the time and effort you are willing to put into learning and practicing your skills.
IMPORTANT NOTE: There are no lectures in this course. However, I explain what I am trying to accomplish with each line of code, and touch on common pitfalls, too.
This is a course for beginner C# .net programmers who need to put the concepts and theory they learned into practice and for people who prefer to learn by doing. If you are still learning basic concepts and require lot of explanation and theory, then this course may not be the best fit for you! But if you are ready grow your skills through practice, than you will love this course!
Let's start coding!