Hi John
In my understanding of things, you can't.
What you have to do is dump the inheritence and create an instance of the
object you're inheriting from inside your object and then rewrite the
relevant properties to access the properties of the control you wish to be
visible whilst masking the rest. I asked a similar question not two days
ago. See below for the question and it's answer.
Regards
Greg
all that
You can't. If you don't want people to have access to the base class's
members, don't inherit from it. Have a search for Liskov's
Substitutability Principle for good reasons for this.
solution,
Yup, it is.
Composition can be a bit of extra work, but gives a lot of flexibility
and can avoid unintended uses of your class.