Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Background:

 

I have created a base form in a class library. This base form contains a menu, an image list, and a toolbar. I set the Modifier properties for these items to Protected.

 

Then, in a new project, and using the form designer, I created a new form derived from the base form by adding an inherited form, and selecting the base form. In this new project, I added a new menu item, an image to the image list, and a button to the toolbar, and a label to the derived form. Next, I built the project, saved the files, and closed the project.

 

Issue:

 

When I reopen the project, I found the following:

 

(1) The new menu item did not appear

(2) The new image was not in the image list

(3) The new button was not on the toolbar

(4) However! -- the new label did appear on the derived form

 

When I reopen this project, I think I would expect to see the new menu item, and button with appropriate image on the toolbar, as well as the label.

 

I am new to developing classes and deriving from other classes, so I am sure there is something obvious that I am overlooking; however, I am stumped. I have exhausted my personal library, and could not find the issue on the forum. I would appreciate, very much, any advice regarding this issue. Thanks.

  • 2 years later...
Posted

Has anyone else noticed this?

 

I know this is an old thread, but I am experiencing the same thing with a form inherited from my base form. I have 4 menu items on the base form, and I add a menu to the left-most position on the new form. When I do it, I can see all the menus. When I close the form and bring it back up, the new menuitem is gone!

 

When I look at the Windows Form Designer generated code area, I see the new menuitems I added, but the first item has an index of -1.

 

Any suggestions?

rustyd

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...