Search code examples
c#custom-controlspaintonpaint

can't invoke paint


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?


Solution

  • 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.