declare integer GdipGetDC in gdiplus.dll ; integer, integer @ declare integer GdipReleaseDC in gdiplus.dll ; integer, integer FUNCTION yourListener.Render(...) LOCAL lnRet, lnHdc lnHdc = 0 lnRet = GdipGetDC(THIS.GDIPlusGraphics,@lnHdc) IF lnRet != 0 ? handle error ... ENDIF && do your drawing stuff here && you have to release the hDC aftewards, otherwise GDIPlus will not be able & to function properly .. GdipReleaseDC(THIS.GDIPlusGraphics,lnHdc) && call DODEFAULT ... ENFUNCRegards