Hi all, i'm developing a program for my company, and i need a little help.
How can i create an interface that need to be also a form?
Is possible, there is an interface that create the Form class, or i'm so unluky that i need to use an abstract class derived from System.Windows.Forms.Form?

Thank all for the response :)

Recommended Answers

All 3 Replies

You can't create an interface that has to be a class because then it wouldn't be an interface. Abstract class is the way you'll have to go.

Also, why do you consider it to be unlucky to have to use an abstract class?

because i'm creating a plugin system, and all the references i found on the net are incentred on the interface system...
it's possible to use also abstract classes?

You might want to read this.

As for interface vs abstract, there isn't much difference if the abstract class doesn't implement any methods.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.