I'm working on a Windows Forms Application to run a Pomodoro Timer window. I'm trying to work out why I'm getting this error thrown, here's the deets: In Form.Designer I have a label that displays label1.Text="Circuit "+ circuitCounter + " Session " + sessionCounter; circuitCounter and sessionCounter are declared above the initializer but still within the Form1 class. I'm thrown the error "The variable 'circuitCounter' is either undeclared or was never assigned" and I can't understand why. Here is the relevant code for the Form1 class: namespace Pomodoro_Timer { public partial class Form1 : Form { //set timers static System.Timers.Timer sessionTimer= new System.Timers.Timer (1500000); static System.Timers.Timer sbTimer = new System.Timers.Timer(300000); static System.Timers.Timer lbTimer = new System.Timers.Timer(900000); //declare counters public int sessionCounter = 0; public int sbCounter = 0; public int circuitCounter = 0; public Form1() { InitializeComponent(); } And here is the relevant code from the designer: // // circuitsessionDisplay // this.circuitsessionDisplay.AutoSize = true; this.circuitsessionDisplay.Location = new System.Drawing.Point(13, 43); this.circuitsessionDisplay.Name = "circuitsessionDisplay"; this.circuitsessionDisplay.Size = new System.Drawing.Size(82, 13); this.circuitsessionDisplay.TabIndex = 2; this.circuitsessionDisplay.Text = "Circuit "+ circuitCounter + " Session " + sessionCounter;