Home All Groups Group Topic Archive Search About

Trouble with TableLayoutPanel

Author
24 Feb 2006 4:01 AM
David S. Zuza
I want to add a lable at a specific cell in table layout Panel how?

Author
24 Feb 2006 4:19 AM
David S. Zuza
I want to do this at runtime

Show quoteHide quote
"David S. Zuza" <dsz***@hotmail.com> wrote in message
news:Oe6MMcPOGHA.1832@TK2MSFTNGP11.phx.gbl...
>I want to add a lable at a specific cell in table layout Panel how?
>
>
Author
24 Feb 2006 9:04 AM
gene kelley
On Thu, 23 Feb 2006 22:01:49 -0600, "David S. Zuza"
<dsz***@hotmail.com> wrote:

>I want to add a lable at a specific cell in table layout Panel how?
>

This would add a label named "MyLabel" to the cell located at column3,
row2.  Assumes MyLabel exists as a control on a form or has been
created dynamically at runtime.

TableLayoutPanel.Controls.Add(MyLabel, 3,2)

Gene