NEVER call CreateGraphics. Draw on the Paint event of the relevant control.