I can find examples on how to override the form paint event but how would I go about overriding a panel paint event?

Any help appreciated.