Property Sheet for Inherited Objects

  • Thread starter Thread starter Gene Hubert
  • Start date Start date
G

Gene Hubert

I've got a custom datagrid that inherits from the standard datagrid on
a windows form. I expected that since it is an inherited object,
protected properties from the standard datagrid would be visible in
the property sheet when working with the custom datagrid on a form.

This seems not to be the case. Am I expecting too much? Could it be
due to using VB.net Standard 2002?

Thanks,
Gene H.
 
Hi Gene,

No... that is the expected result. Protected means accessible to derived
classes, so your derived class can access them.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"


: I've got a custom datagrid that inherits from the standard datagrid on
: a windows form. I expected that since it is an inherited object,
: protected properties from the standard datagrid would be visible in
: the property sheet when working with the custom datagrid on a form.
:
: This seems not to be the case. Am I expecting too much? Could it be
: due to using VB.net Standard 2002?
:
: Thanks,
: Gene H.
 
(e-mail address removed) (Gene Hubert) scripsit:
I've got a custom datagrid that inherits from the standard datagrid on
a windows form. I expected that since it is an inherited object,
protected properties from the standard datagrid would be visible in
the property sheet when working with the custom datagrid on a form.

This seems not to be the case. Am I expecting too much? Could it be
due to using VB.net Standard 2002?

Protected properties are only visible to the class and the inherited
class. If you place a control on the form, you won't see them.
 
So, a child object can see protected properties of its parent in code
at runtime but not at design time in the IDE. Is that right?

Thanks,
Gene H.
 
Back
Top