inheritance problem

Topics: CAB & Smart Client Software Factory
Jan 13, 2006 at 11:57 PM
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
Jan 14, 2006 at 6:43 AM
originally posted by: BradWilsonMSFT

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