Windows Develop Bookmark and Share   
 index > Windows Forms Designer > set different widths for cells of Tablelayoutpanel
 

set different widths for cells of Tablelayoutpanel

I have a tablelayoutpanel with 2 rows and 2 columns
I want to have:
width of cell[0,0] is : 50 cell[column,row]
width ofcell[0,1] is : 100

but when iset the width of column 0, theall cells of column 0 have the same width
can i set the different widths of cell[0,0] and cell[0,1]

Mohammed Kadi  Sunday, April 26, 2009 1:19 PM
You can't resize cell as you expect. One workaround is using ColumnSpan property which can be used to merge cells.



Check TableLayoutPanel Class in MSDN

http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.aspx

Similar Thread

http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/c632102d-2ec0-48db-aded-360a1e78efe1
Thanks, A.m.a.L | [Remember to click "mark as answered" when you get a correct reply to your question]
A.m.a.L - aditi.com - Think Product  Sunday, April 26, 2009 2:31 PM

Hi Mohammed Kadi,

I think you can use two Tablelayoutpanel in this situation. The first is above and the second it below. Both Tablelayoutpanel have only one row. You can define different column width for them. Does it what you want?

If you have further question, please feel free to tell me.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, April 28, 2009 3:24 AM
You can't resize cell as you expect. One workaround is using ColumnSpan property which can be used to merge cells.



Check TableLayoutPanel Class in MSDN

http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.aspx

Similar Thread

http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/c632102d-2ec0-48db-aded-360a1e78efe1
Thanks, A.m.a.L | [Remember to click "mark as answered" when you get a correct reply to your question]
A.m.a.L - aditi.com - Think Product  Sunday, April 26, 2009 2:31 PM

Hi Mohammed Kadi,

I think you can use two Tablelayoutpanel in this situation. The first is above and the second it below. Both Tablelayoutpanel have only one row. You can define different column width for them. Does it what you want?

If you have further question, please feel free to tell me.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, April 28, 2009 3:24 AM

You can use google to search for other answers

Custom Search

More Threads

• Can you edit the path the designer uses for relative pathing for visual controls?
• Adding a new windows form from my own custom wizard
• Visual Studio 2005 Beta 2 Designer futures
• Custom Control Help! Using a classic C-Style custom control.
• Should the order controls are added matter?
• XPTaskbar and flowlayout
• Visual Studio 2005 MaskedTextBox
• Encrypting the content of a textbox
• Can't Dock Controls Inside GroupBox Component of UserControl (vb9)
• DataGridView declared local, not private?