Trying to create a base User Control, but I can't edit my inherited user controls.

0
0

Hi everyone,

I am trying to create a base user control with couple of panels, a title label and couple of buttons.  My intention is to start with this base so I can have a similar look and similar controls.  For my  inherited user controls, I will add more controls and behavior.  BUT currently, my inherited user controls cannot be edited. Am I missing something?  Thanks in advance.

 

 

 

  • You must to post comments
0
0

Frank,

As soon as I read your comment, the light went on!!  Yes, I went back and changed my panel modifiers on the  file “ucBaseControl.Designer.cs” (this is my base user control class) from private to public.  Now I can add controls into these panels on my inherited controls.

Thank you very much.

Edwin

 

 

 

Attachment
  • Frank (ITG)
    Hi Edwin, glad it worked out well. Thanks for letting us know how you made it work. Regards Frank
  • You must to post comments
0
0

Edwin,

you might want to check your controls modifiers. They should be protected or public.
If that´s not the reason, please send us a small runnable test case that we can check.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.