Designed public class MyForm : System.Windows.Forms.Form

  • Thread starter Thread starter Daniel P.
  • Start date Start date
D

Daniel P.

Since multiple inheritance does not exist in C# I would like to be able to
subclass the Form and then have other class subclass MyForm. If I do that
then the designer will not see my classes as Forms anymore.

How can I fix that and have the design behave as MyFinalClass subclasses the
Form directly?

Thanks!
 
Daniel,

You should be able to get designer support from the form. Are you
declaring the base form as abstract? The designer doesn't know how to
handle this, since it needs to instantiate an instance of the object in
order to work with it.

Hope this helps.
 
You are right. It was abstract. Thanks! Now it works.


Nicholas Paldino said:
Daniel,

You should be able to get designer support from the form. Are you
declaring the base form as abstract? The designer doesn't know how to
handle this, since it needs to instantiate an instance of the object in
order to work with it.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Daniel P. said:
Since multiple inheritance does not exist in C# I would like to be able to
subclass the Form and then have other class subclass MyForm. If I do that
then the designer will not see my classes as Forms anymore.

How can I fix that and have the design behave as MyFinalClass subclasses the
Form directly?

Thanks!
 

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

Back
Top