I'm making a program and I have a lot of labels that when you click on them they do the same thing and instead of writing them around 40 times is there a way to reduce it
private: System::Void lblHB15_Click(System::Object^ sender, System::EventArgs^ e) {
if (HBColumn1 == true) {
drop (1);
}
if (row1 == 6) {
btnRow1->Enabled = false;
HBColumn1 = false;
}
}