Design-time colors vs Run-time colors
I have a relatively simple situation where I have a couple of Label controls in a TabPage control.
At design-time the Backcolor property of the Labels is set to Silver, and the TabPage Backcolor is also set to Silver.
When run the project, the form displays the wrong color for the Labels. Although I'm not the best judge of shades of white
, it appears to be the TransparencyKey color for the form that the tab control is on.
Is there some weird TransparencyKey or color rendering issue that I'm not aware of? I haven't tried to duplicate this in a new project as I'm guessing it isn't something that is easily reproduced.
Is there some kind of simple 'gotcha' I'm missing?
Thanks very much.
Can you post a stripped-down class that reproduces this behavior? Just copy everything and begin chopping out code until it goes away or until you can chop no further, if you come to the latter post the code.
I usually let labels inherit their settings (default) from the parent, and also use transparency when the underlying background is 'manually painted'.
Is this 1.1 or 2.0?
I'm not seeing the problem here in 2.0, maybe I'm blind, my best guess is it's being caused by the tab page rendering the background differently than the world around it.