开发者

Direct access to TableLayoutPanel Cells

I have a TableLayoutPanel where eac开发者_JAVA百科h 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.


I found it, it is layoutPanel.GetControlFromPosition(x,y);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜