0

this dont work in designer view ....

public partial class FMain : IMasterForm<Familia>
{
    public FMain()
    {
        InitializeComponent();
    }
}

but this... is Ok in desginer view! ...

public partial class FMain : Fbase 
{
    public FMain()
    {
        InitializeComponent();
    }
}
public class Fbase : IMasterForm<Familia>
{
    public Fbase() { }
}

i found this answer here: http://madprops.org/blog/Designing-Generic-Forms/

But i Would need to operate it without creating another extra class. Its Possible?

1 Answers1

1

You have omitted the base class, which is Form. Probably you have replaced it with the interface.

The correct class declaration would be:

public partial class Fbase: Form, IMasterForm<Familia>
George Polevoy
  • 7,450
  • 3
  • 36
  • 61