Inheriting from UserControl

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
 
C

Charlie Brown

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top