From what I understand, a form can only inherit from Form
, it can not have multiple inheritances. That is, the following could not be done:
public partial class frmCliente : Form, BaseMaestro<Cliente>
However, if I do the following:
public abstract class BaseMaestro<T> : Form
And also frmCliente
is another class that, in turn, inherits from the previous one:
public partial class frmCliente : BaseMaestro<Cliente>
So that frmCliente
would be inheriting from Form
.
However, VS does not interpret it as such anymore and I can not add controls using the designer. Is there any way to solve this small inconvenience?
The designer can not be shown for this file because none of the classes it contains can be designed. The designer inspected the following classes in the file:
frmCliente --- La clase base 'Example.WindowsForms.Clases.BaseMaestro<Example.EntidadesDominio.Cliente>'
could not be loaded. Make sure that the assembly has been referenced and that all projects were generated.