i try to pa开发者_运维百科int button in my C# windows-CE program.
in one device i Success to do it ( button1.BackColor = Color.Red;
)
but in a nother device i see that the button in like win XP style - and
when i try to change the color it dosent Changed.
what can be the Reason ??
thank's in advance
The reason is because the device has the XP skin component included (SYSGEN_XPSKIN) in the OS which overrides the standard button paint behavior. If you want to paint the button, you need to either create a different skin for the device or get a new OS image that doesn't include the skin.
精彩评论