The best way to do this (for a few reasons) would be to extend the control you need to do custom drawing on and override the Render method.
Originally Posted by detlion1643
By doing it this way you can add custom properties, decide when or if the base control does its drawing and even have a re-usable component for other plugins or panels.
public override void Render(OpenMobile.Graphics.Graphics g, renderingParams e)
g.DrawImage(icon.image, left + 48, top+18, 92, 92);
if (ourTextTex == null)
ourTextTex = g.GenerateTextTexture(0, 0, width, 34, ourText, localFont, eTextFormat.Bold, Alignment.CenterCenter, Color.White, Color.Gray);
g.DrawImage(ourTextTex, left, top + 112, width, 34);