I create an array of 16 text boxes, etc in code. I need to detect which one is clicked. I have created an event handler for each that points to the same handler routine for all 16
for(int box = 0; box < 16; box ++)
{
txtArray[box].Click += new System.EventHandler(txtArray_n_Click);
}
There I get stuck trying to identify which one called the handler. Been reading up on Delegates, but I'm not sure which direction to travel from here. I could spend a lot of time on that path to no profit other than my own education!
Any pointers?