TableLayoutPanel and label

X

x10179

Hello

I'm a newbie with the TableLayoutPanel and have a couple of questions
1) Is there a way to set the label control such that the cell expands
and shrinks along with the text in the label control
2) Is there a way to hide/show a row as needed ?
 
J

Jack Jackson

Hello

I'm a newbie with the TableLayoutPanel and have a couple of questions
1) Is there a way to set the label control such that the cell expands
and shrinks along with the text in the label control

Setting the TableLayoutPanel Row to AutoSize may do what you want for
the height. For the width, set the Column to AutoSize. You may also
want to set the label to Dock.Fill
2) Is there a way to hide/show a row as needed ?

Set the Visible property of the object in each column of the row to
False.
 
X

x10179

Setting the TableLayoutPanel Row to AutoSize may do what you want for
the height.  For the width, set the Column to AutoSize.  You may also
want to set the label to Dock.Fill


Set the Visible property of the object in each column of the row to
False.

doesn't work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top