简体   繁体   中英

how to paint button in windows-CE?

i try to paint 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM