tags:

views:

328

answers:

2

I have a TableLayoutPanel where each cell contains a single panel. I would like to be able to directly access any one of the cells by row and column and do something to the panel in it. I cannot for the life of me figure out if I can access controls within a cell. It would be great if I could do something like:

Panel p = layoutPanel.Cell(x,y).Controls[0] as Panel;

p.dosomethingCool();

But I cannot seem to get that kind of access, even though it seems like something that should be quite possible.

+3  A: 

Nevermind. I found it. It is layoutPanel.GetControlFromPosition(x,y); Nothing to see here.

CaptnCraig
great job ! ! !
TheMachineCharmer
A: 

Thanks i have been looking everywhere for this

Yan