Inherited form doesn't have controls from parent

G

Guest

I have a simple form with a panel that is docked in the base form. The panel
has three controls - two buttons and one treeview.

I use "Inherited Form" when creating a second form derived from this parent
form. The only thing is there are no controls in the inherited form. I made
all the base controls "protected". What am I dong wrong?
 
G

Guest

Steve,

I was able to create inherited forms two different ways, one of them using
the inherited form method, and one just using a reference to another project.


If I was guessing, I would guess that your base form was created as a
Windows application and compiled as an exe. If you will go to the properties
of that project and change it to a library application, then build it, that
should solve your problem.

HTH

WhiteWizard (aka Gandalf)
MCSD.NET, MCAD, MCT
 
G

Guest

I discovered my inherited form needed to call the base class form's
constructor and it had to call the InitializeComonents.
 

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