I have created a panel (I inherit from the form panel) and a control.
when i add the panel to a form the onpaint of the panel, which I override is called. in the onpaint function of my panel i create an instance of my control and i add it to the controls of the panel. in my contorl I also override the onpaint of the contorl but this time the on paint of my contorl is not called when i add it to the conrols property of the panel which i created.
how can i call the onpaint of the control from the onpaint of the panel?