I created my own control and overwritten the onpaint event, the problem is that the paint event stopped working
Any ideas why? And how to restore it?
Let's have a telepathic guess here:
You forgot to call base.OnPaint(...)
inside your override. Meaning that the base functionality is no longer invoked.