G
Guest
hi all
i am trying to make a custom control in specify a button with an image
so i have googled around finding the good article on MSDN where it is
explain how to make a control which behaves like a button
(http://msdn2.microsoft.com/en-us/library/aa446518.aspx)..
this custom controls inherits from Control
and override the onPaint methods...this is good but this is quite more like
an image that you can click..
iìd like to have a button with an image over it but with the shape of the
button..so i have changed the code inheriting from Button...
but in this way i can see that the onPaint event never fires..so the code
which calls the drawing logic never executes
i hope i am clear
i am trying to make a custom control in specify a button with an image
so i have googled around finding the good article on MSDN where it is
explain how to make a control which behaves like a button
(http://msdn2.microsoft.com/en-us/library/aa446518.aspx)..
this custom controls inherits from Control
and override the onPaint methods...this is good but this is quite more like
an image that you can click..
iìd like to have a button with an image over it but with the shape of the
button..so i have changed the code inheriting from Button...
but in this way i can see that the onPaint event never fires..so the code
which calls the drawing logic never executes
i hope i am clear