Working with timers in .NET Part 1 – Instantiate the timer object

Let’s use the Timer class in .NET here. First let’s create a static field, aTimer. Next create a new method that creates a timer and enables it to raise an event. Finally call the method inside the Main method. Great! In the next post let’s hook up the timer to an event.

1 min read