Inheriting forms

  • Thread starter Thread starter Ronald Hermans
  • Start date Start date
R

Ronald Hermans

Hello,

I have a Delphi background and just started with c#. I'm trying to inherited
a form that has a MenuStrip on it with some basic items in it. I want to
extend the menu in the intherid form but I'm not able to access the
properties as they are disabled. Can someone tell me what it is that I'm
missing?

TIA
Ronald
 
Ronald said:
Hello,

I have a Delphi background and just started with c#. I'm trying to
inherited a form that has a MenuStrip on it with some basic items in it.
I want to extend the menu in the intherid form but I'm not able to access
the properties as they are disabled. Can someone tell me what it is that
I'm missing?

You need to make sure the member variable for the menu strip is protected
(default is private) so that it can be modified by inheritors.
 
Ronald Hermans said:
I have a Delphi background and just started with c#. I'm trying to inherited
a form that has a MenuStrip on it with some basic items in it. I want to
extend the menu in the intherid form but I'm not able to access the
properties as they are disabled. Can someone tell me what it is that I'm
missing?

By the way, the strip controls (MenuStrip and toolbar etc.) don't fully
support visual inheritance in VS05 - it's been mentioned on this
newsgroup before. I think it will be addressed in a future VS release.

If you're willing to work with them in code rather than on the design
surface, you can still get things done. Of course, the members will need
to be protected, like Tom says.

-- Barry
 
Back
Top