Visual inheritance problems

Hi.

I am experiencing a strange problem with visual inheritance in VB.NET. My project has one form, that serves as the base of several other forms. All was working well but suddenly, every time I add a new form to the project, VS.NET 2003 randomly removes some controls of the other forms. If I don't use visual inheritance, I can add new forms to the project with no problems. Is it a known bug

Thanks,

Rinaldo


Answer this question

Visual inheritance problems

  • ching

    i use C# and had the same problem. i believe this has something to do with the IDE. 
    the only way i can fix it is to delete all the code behind it before i add a new controls.
    when the IDE removes ur controls, some of the code behind it is not getting cleared. 
    u need to delete it first, and add new controls. so far i have no problems. 

    good luck

  • sremiger

    Rinaldo,

    I experienced the same problem as you too. Can you locate the controls in the code  They could be moved to different coordinates sometimes. But most of the time, I have to add them back.  :(  

  • Panesso

    I too had same problem  .... but its not bug. It is because of SuspendLayout() and ResumeLayout(false) method of Form class work. The way its work ....it just mess up everything ...

    Sometime it works properly when the Parent form is not open.  ...if it is open then it mess up everything.


    Happy Coding !!!
    Mihir Solanki
    www.resx247.com - .Net Resouce Directory

  • Visual inheritance problems