Skip to content

About

A C# Windows Forms App program that validates the age of a user.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

C# Windows Forms: Age Verification

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).

Features

  • 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.

Tech Stack

  • Language: C#
  • Framework: .NET Framework (Windows Forms)
  • IDE: Visual Studio

How to Run This Code

  1. Click the green Code button and download the ZIP file, or clone the repository.
  2. Extract the folder and open the .sln (Solution) file using Visual Studio.
  3. Ensure you have the .NET desktop development workload installed.
  4. Press Start (or F5) in Visual Studio to run the application.

Screenshots

image image image

About

A C# Windows Forms App program that validates the age of a user.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages