1

I am developing a Winform application with lots of TableLayoutPanel use.

If possible, I would like to set thickness of the cell borders zero or very small because hierarchical use of the TableLayoutPanel reduces width and height of actual cell contents.

I tried to search within MSDN and Google in vain. Any hint will be appreciated.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
  • Have you checked `TableLayoutPanel.CellBorderStyle` ? http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.cellborderstyle(v=vs.100).aspx – Bolu Jan 09 '13 at 15:35
  • @Bolu Thanks for your comment. As far as I can see, however, that's nothing to do with its thickness. In my case, it's already `None`. – Tae-Sung Shin Jan 09 '13 at 15:52
  • then you mean the `Margin` then, set `Margin` to 0|0|0|0 – Bolu Jan 09 '13 at 16:02

1 Answers1

7

Set Padding and Margin of your TableLayoutPanel to 0|0|0|0

enter image description here

Bolu
  • 8,696
  • 4
  • 38
  • 70