
Overriding the OnPaint method for button controls
Hi All,
still a little question about overriding the OnPaint method.
I see that when I override it, the control rendering is affected in both
design-time and runtime phases: is there a way for the control to know if
it's doing the rendering at design-time?
I ask this because, being the rendering performed by an external DLL, it
seems to work only at runtime, while at design time, if I don't call the
base.OnPaint (e) method, the control will be black: I would like to avoid
calling the base class method at runtime in order to speed up the rendering.
Thanks in advance and Kind Regards
Severino