-
visual inheritance
hello
I've a problem with my designer when I use visual inheritance.
I've executed the following steps :
1. make a base form with a MainMenu and execute it to a .dll-file
2. make a derived form
3. in the derived form, I added new MenuItems to the MainMenu.
4. build and execute this project
5. the new MenuItems are visible in the application
When I close the application and turn back to the designer, the new MenuItems are not visible !
What do i wrong ? Can anyone explain this to me ?
thanks
Kris
-
It is actually the designer if I remember right.
Below the form you should see your menu object that you added. Select it, and your menu should show up on the form for you to edit.
I think this might be the problem your having...
-
ok, but i see only my MainMenu (like i've made in the base form) but i didn't see the new menuItems (been added in the derived form) after running the project.
When i go to #Region " Windows Form Designer generated code ", i can see the code for the menuItem
Kris
-
VISUAL INHERITANCE SUCKS, PERIOD!
I've had many headaches working with this crap, it's so annoying! VS is so buggy when you wanna inherit something :( yeah everything shows up fine in the compiled app, but not at design time. I recommend you give up, because it causes more headaches :(
I had written about 2000 lines of code for 6 forms and then I found out that I had to rewrite them cuz this stupid inheritance wouldnt work well for designing :(