thanks for your reply.
if as you say when I add the new control it needs re-painting, then why the onpaint of the contorl is not called when i add it to the controls of the panel?