I have a Checkbox array. I placed it in a Listview. I set the CheckedChanged event handler for them. The CheckedChanged event fires successfully and I want to get the GUID of the control from the sender object. How can I get the GUID?
_ckeckBox[i].CheckedChanged += new EventHandler(frmMain_CheckedChanged);
void frmMain_CheckedChanged(object sender, EventArgs e)
{
}
As commentators have mentioned, the sender parameter tells you which control is calling the event: