WinForm Oxygene form inheritance?

winforms
inheritance
(Vladimir Srednikh) #1

Hi!
Is there a winform inheritance?
Is it planned in near future?
Can’t find an inheritance template how it is described in https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-inherit-forms-using-the-inheritance-picker-dialog-box

0 Likes

(Theo) #2

This just works.
Create your base form, then create a new form and inherit it from the base form instead of Form in the code.

1 Like

(Vladimir Srednikh) #3

i do as you say, and designer show me it
but form is blocked from design-time changes

plus when i place a control on this form, i can’t save it.
VS tells me it can’t complete operation, unknown error

0 Likes

(Theo) #4

It is blocked because everything has unit-visibility in the base form.
Change the visibility to public of each and every control on the base form to make it possible to change it in the inherited form.

0 Likes