Interface - Force Form Inheritance

  • Thread starter Thread starter BluDog
  • Start date Start date
B

BluDog

Hi

I have an interface and i want to impose that implementing classes
inherit from Windows.Forms.Form. As there is no IForm and an interface
cannot inherit from a non interface class, is there a sensible way of
doing this?

Cheers

blu
 
* BluDog said:
I have an interface and i want to impose that implementing classes
inherit from Windows.Forms.Form. As there is no IForm and an interface
cannot inherit from a non interface class, is there a sensible way of
doing this?

You could create a 'MustInherit' class that inherits from the windows
forms form and implements the interface.
 
You could create a 'MustInherit' class that inherits from the windows
forms form and implements the interface.

Yea, i was considering this for my 'Helper Form' but that will not
really prevent the interface from being implemented directly.

Cheers

Blu
 
Back
Top