I've got a class setup that creates textboxes dynamically as information is received.
I've got the handling events and everything set to it, but I want to set a private variable for each new instance of the textboxes to hold a time value, but I'm not sure where I would set it?
What I want to happen is when the timer counts down to 0 on the instance of the textbox, the foreground/background changes colour
Could someone just correct me on the concept of how it should work?
I believe the variable - lets call it minutes, should be placed within the create textbox class. When this class is activated it sets the time within its minutes variable.
When the timer_tick event runs, it takes away a count of 1 from the minutes variable.
I know I can't use a public shared variable, as whenever a new textbox is created, it would then re-write the minutes variable. All instances would use the same variable, which isn't correct. Each separate textbox should have it's own minutes set to it.