When using the System.Windows.Forms.TableLayoutPanel control on a windows form, it sets the background color too: 216, 216, 216, and even if we change the color to something else, the color always seems to reset back to 216, 216, 216.
It does it at run time, and even during design time. During design time, you can change the color, and it resepct the color change, but if you switch away from the form designer, and back to it, it resets back to 216, 216, 216.
Is this a known issue, or how can we avoid this issue?
Note: We did do this using just a blank project, single table layout using .NET Framework 4 (not client framework).
We are using
- Microsoft Visual Studio 2010
- Version 10.0.30319.1 RTMRel
- Microsoft .NET Framework Version 4.0.30319 RTMRel
- Installed Version: Ultimate
C# Details
- Microsoft Visual C# 2010 01019-532-2002102-70826
- Microsoft Visual C# 2010
Issue is caused by the Metro components inside of the DevComponents suite. When adding a table layout to anything on a Metro enabled form, the table layout color resets back to whatever the stylemanager wants, regardless of what you set it as.
Have opened an issue w/ the developer to see if it can be fixed, they advise as of 10/21/2011 that they are looking at ways of overriding that issue.