Form inheritance

  • Thread starter Thread starter Alan T
  • Start date Start date
Hi Alan,

1. Add to your project a reference to the System.Windows.Forms.dll assembly
2. Create a new class and use the ":" syntax:

public class MyDerivedForm : System.Windows.Forms.Form
{
}
 
Hi,
It didn't work.

I need to make myself clear:
I create a class library and created a form with buttons as ancestor form.
Now I want to create inherited form from this ancestor form, I tried to
create an inherited form but cannot pass through the wizard.
 

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