M
Mauro
Hi,
we'd like to define an abstract library class for a windows control, where
we specify a couple of abstract methods in order that they must be
overridden and implemented differently in each derived class.
We've tried creating the base abstract class and the derived class in the
main project but this leads to the following error appearing in the designer
view of the derived class:
"The designer must create an instance of "IamsPack.ctlIamsPackBase" but it
can't because the type is declared as abstract"
The funny thing is that the designer view displays fine when we first open
the solution, and then gives an error after we've run the application from
within Visual Studio.
I've read in another post that it's more stable to create the base class in
a separate library DLL and then add a reference in the main project. But
before I do that I'd like confirmation whether there is any problem with
making the base class abstract. Any feedback/suggestions would be greatly
appreciated.
Thanks,
Mauro Ciaccio
we'd like to define an abstract library class for a windows control, where
we specify a couple of abstract methods in order that they must be
overridden and implemented differently in each derived class.
We've tried creating the base abstract class and the derived class in the
main project but this leads to the following error appearing in the designer
view of the derived class:
"The designer must create an instance of "IamsPack.ctlIamsPackBase" but it
can't because the type is declared as abstract"
The funny thing is that the designer view displays fine when we first open
the solution, and then gives an error after we've run the application from
within Visual Studio.
I've read in another post that it's more stable to create the base class in
a separate library DLL and then add a reference in the main project. But
before I do that I'd like confirmation whether there is any problem with
making the base class abstract. Any feedback/suggestions would be greatly
appreciated.
Thanks,
Mauro Ciaccio