ewan's projects — docs

college-practice-trafficlights

February 24, 2026

# vbnet# windows-forms# college# historical

college-practice-trafficlights is a Windows Forms application built in VB.NET as a college practice exercise. It simulates the standard UK traffic light sequence (Red → Red+Amber → Green → Amber → Red) with both manual control buttons and an automatic 2-second timer cycle.

This project was an exercise in timer controls and event handling, state management with arrays, Select Case statements, and resource management for images.

Controls

Manual buttons for each state, a "Change Light" step button, Start/Stop timer buttons, and an Exit button.

Running It

  1. Open TrafficLights.sln in Visual Studio 2022
  2. Build (F6)
  3. Run (F5)

Tech

VB.NET, .NET 8.0 (Windows), Windows Forms. Traffic light images in assets/.

Licence

GPLv3.


← all docs