List Info

Thread: C-Sharp (C#) Group: Overriding Button Class Text.set and OnPaint




C-Sharp (C#) Group: Overriding Button Class Text.set and OnPaint
country flaguser name
United States
2007-08-14 13:34:43
I'm having a really hard time trying to figure out how to
override the
drawing in my class derived from Button.  When I set the
text
property, the drawing seems to be taking place in the set
method.  I
try to override OnPaint and VS never even stops on my
OnPaint
breakpoint.  I try overriding set, but I have no idea how to
get the
Graphics object from the control.  I'm trying to develop
games for
Windows Mobile 5.x, and it won't let me use the Control
classes
CreateGraphics function.

Please help!  Thank you!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )