Results 1 to 4 of 4

Thread: visual inheritance

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Belgium
    Posts
    16

    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

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Belgium
    Posts
    16
    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

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width