winforms - Abstract Windows.Forms.Panel possible in C#? -


i trying create program has multiple layers of controls drawing on top of each other. way i'm doing have windows.forms.panel container panels doing actual drawing (this way can layer them).

for panels doing drawing have abstract class inherits windows.forms.panel (call abstractpanel) have set docking style "fill". overrides onpaint function in calls abstract function override in children.

the problem have when add control inherits abstractpanel container isn't showing (the onpaint function isn't being called).

any suggestions?

am thinking java perspective , need make abstractpanel not abstract?

i've had similar issue visual studio winforms designer: if form inherits abstract class, doesn't shown in designer @ all. don't know why, reason windows forms doesn't "like" abstract classes. try removing abstract keyword, won't change functionality if do.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -