in the onpaint function of my panel i create an instance of my control and i add it to the controls of the panel.