Inheriting Forms...

  • Thread starter Rasmus Kromann-Larsen
  • Start date
R

Rasmus Kromann-Larsen

Hey,

I'm working on an application (questionaire) with alot of different question
types (very different form layout)... But the questions share attributes,
however - since I'm working in the .NET Compact Framework that doesn't
support Inheriting Forms, and a form is required to inherit
System.Windows.Forms.Form - and can only extend one class, how am I to build
the thing without having to repeat my shared attributes (can make an
interface to make sure I don't miss anything - but still)..? Any ideas?

- Rasmus.
 
N

Nicholas Paldino [.NET/C# MVP]

Rasmus,

Since you can not inherit from a base class, I would recommend having a
template of some sort which has all of the common properties, and then
copying that template and customizing it as needed for each new class.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top