This repository contains the completed source code for Tutorial #7 on my YouTube channel. It demonstrates how to implement input validation, string-to-integer parsing, and conditional verification logic using C# and Windows Forms.
📺 Watch the full tutorial here: (https://www.youtube.com/@CodedByVin).
- Checks if the input field is left empty and prevents the program from crashing by displaying an "Input Error" message box.
- Converts the user's text input into a numeric integer and evaluates whether the user is 18 years of age or older.
- Uses message boxes with custom titles to deliver responses, either welcoming users of age or notifying them that they are too young.
- Language: C#
- Framework: .NET Framework (Windows Forms)
- IDE: Visual Studio
- Click the green Code button and download the ZIP file, or clone the repository.
- Extract the folder and open the
.sln(Solution) file using Visual Studio. - Ensure you have the .NET desktop development workload installed.
- Press Start (or
F5) in Visual Studio to run the application.