Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Inheritence

Status
Not open for further replies.

PGO01

Programmer
Jan 8, 2008
156
GB
I have a base form (Form1) which has a panel, fully docked, with it's Modifiers property set to Internal.

I have Form2 that inherits from Form1.

I can't drop controls onto the panel in the Form2 designer, why?

I can do it through code, however.

Is this a bug?
 
I've set the panel's Modifier property to protected internal and the designer works fine now.

It's obvious when I think about it, protected allows access through inherited classes, internal allows access at assembly level only, but not through inherited classes. I need both, so protected internal it is!

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top