changing MenuItem in an inherited class

  • Thread starter Thread starter newbie_csharp
  • Start date Start date
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
 
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).
 
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
 
Back
Top