开发者

how to paint button in windows-CE?

开发者 https://www.devze.com 2023-01-20 20:32 出处:网络
i try to pa开发者_运维百科int button in my C# windows-CE program. in one device i Success to do it ( button1.BackColor = Color.Red;)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消