Yes you can set only 1 Click event-handler
for all those labels:
Step 1:
private void lbl_Click(object sender, EventArgs e)
{
Label lbl = sender as Label;
lbl.BackColor = Color.FromArgb(219, 255, 248);
}
Step 2:
If you create labels on design time then do the following for each label:
- On Form designer, select label then open View > Properties > Events tab
- Select above
lbl_Click
event-handler from the dropdown list
OR
If your create labels programatically then use this instead:
lblPlayerCardInt.Click += new EventHandler(lbl_Click);
lblPlayerCardStrength.Click += new EventHandler(lbl_Click);
...