I have a TableLayoutPanel with 3x3 cells. Each cell has a label in it. I have a click handler common to them all so I delare:
Label clickLabel = sender as Label;
In the properties window of the designer these labels have a "cell" property which gives the TableLayoutPanel's cell for each particular label. However, when I'm coding the click handler VS won't allow me to use:
clickLabel.Cell.Row clickLabel.Cell.ColMy question is: how can I find the TableLayoutPanel coordinates of the clicked label?