inheritance problem

Topics: CAB & Smart Client Software Factory
Jan 14, 2006 at 12:57 AM
originally posted by: cpiock

I have a control that inherits from a basecontrol. in the base control i have set a windowssmartpartinfo with modifiers on protceted. the base control implements the ismartpartinfoprovider interface. But why i must implement the getsmartpartinfo method also in the inherited control?
Steps to reproduce:
1. Create Base form
2. add windwowssmartpartinfo and set modifiers on protected
3. create inherited control
4. open designer and add a contol es. label
5. go in the editor and you see there is the getsmartpartinfo

is this a bug? or we make somthing wrong
thx
christoph
Jan 14, 2006 at 7:43 AM
originally posted by: BradWilsonMSFT

A protected method is not an implicit implementation of an interview; only a public method can do that.