I am trying to create a program that has multiple layers of controls all drawing on top of each other. The way I'm doing this is that I have a windows.forms.panel that is a container for the panels doing the actual drawing (this way I can layer them).
For the panels doing the drawing I have an abstract class that inherits from windows.forms.panel (call it abstractPanel) that I have set the docking style to "fill". It overrides the onPaint function in which it calls an abstract function that I override in the children.
The problem I have is that when I add a control that inherits from abstractPanel to the container it isn't showing up (the onPaint function isn't being called).
Any suggestions?
Am I thinking about this too much from a Java perspective and need to make abstractPanel not abstract?