By the way, there is nothing here that is "inside a Timer". All your code is in the Tick event handler of the Timer, which is not inside the Timer. It is inside the form. If you open the code for the form then all the code you see is inside the form. The event handlers for Button Clicks, Timer Ticks, etc, are all part of the form, not those individual controls and components.