By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,995 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,995 IT Pros & Developers. It's quick & easy.

Inherited form doesn't have controls from parent

P: n/a
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?

--
-----------
Thanks,
Steve
May 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"Steve Teeples" wrote:
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?

--
-----------
Thanks,
Steve

May 2 '06 #2

P: n/a
I discovered my inherited form needed to call the base class form's
constructor and it had to call the InitializeComonents.
--
-----------
Thanks,
Steve
"Steve Teeples" wrote:
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?

--
-----------
Thanks,
Steve

May 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.