changing MenuItem in an inherited class

N

newbie_csharp

Hi,

I try to change the menubar in an inhertied class. in the parent class,
the menuitem is protected. I can clear it in the inherited class but I
cannot add a new menuitem to it. how can I define a new menuitem in the
inherited class and add it to the parent class. for example my parent
class menubar is (New, Edit, Delete, Exit). inherited class: (New, Edit,
Delete, Report, Exit)

thanks
 
N

Nicholas Paldino [.NET/C# MVP]

newbie_csharp,

Can you show the code that is doing this? You shouldn't have a problem
walking up the inheritance tree and making the changes (through the Parent
property).
 
N

newbie_csharp

Nicholas,

always you answer to my questions. thanks a lot. well, I found what the
problem was and I solved. you are right and it's working now.

thanks again
 

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

Top