Ok, so I have a string variable (strSeatName) that holds the name of a label (lblSeat1) and I'm trying to change the color of that label without hard-coding the label name in the command (since it's inside a For loop that changes multiple labels named lblSeat1, lblSeat2, lblSeat3, etc...).
Here is the command I need to use:
lblSeat1.BackColor = System.Drawing.Color.LawnGreen
Except that I need to get the part where it says "lblSeat1" out of the string variable.
I'm sure this is easy. I'm just a n00b.
Suggestions?
Here is the command I need to use:
lblSeat1.BackColor = System.Drawing.Color.LawnGreen
Except that I need to get the part where it says "lblSeat1" out of the string variable.
I'm sure this is easy. I'm just a n00b.
Suggestions?