You can create a class derived from
System.Windows.Forms.TableLayoutPanel
and override
System.Windows.Forms.TableLayoutPanel.OnCellPaint
to create any custom appearance for the cell.
See a code sample here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.aspx[
^].
Alternatively, you can make arrange child controls of the type
System.Windows.Forms.Panel
so each cell contains an instance of
Panel
. The steps (for other child controls like buttons) are described here:
http://msdn.microsoft.com/en-us/library/w4yc3e8c(v=VS.90).aspx[
^]. After you do it, arrange other controls as children of those panels (use
System.Windows.Forms.DockStyle.Fill
with
Padding
). The panels used as pads for other controls can use different background colors.
—SA