开发者

how to paint button in windows-CE?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜