tags:

views:

274

answers:

2

Hi,

I am wrting for the .NET Compact Framework. If a create a MyButton : Control, my OnPaint override gets called correctly. However, if I have MyButton : Button - it does not... Strange, Button is a Control.

Any help would be appreciated.

A: 

Set control's style to UserPaint - problem fixed

A: 

To be able to override OnPaint in Button you needUserPaint style set on Button... and you can't do that in compact framework bacause it's not supported there. The only way to do it is to write your own controls from the ground up.

argh