Inheriting from UserControl

  • Thread starter Thread starter Charlie Brown
  • Start date Start date
C

Charlie Brown

I have two classes, one that inherits from UserControl called Base. I
have a second class that inherits from Base. I do not want to expose
a lot of the properties of usercontrol beyond the Base control. For
example, lets say I want every control that inherits from Base to have
a RED background and not be able to change it. Currently,
backgroundcolor is available in the designer as a color choice. Can I
change the scope of something to disable that?

thanks
 
Thanks, doesn't seem to do what I need. Also, when I set properties
on the Base control such as BackColor, the inherited controls default
to the UserControl default backcolor, not the color I set on the base
control.
 
Back
Top