URGENT: Bug in VS.NET 2003

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tamir Khason

    URGENT: Bug in VS.NET 2003

    Please help.
    I know that there are a lot of developers suffer from this bug in VS.NET. I
    know to ho reproduce it quickly!!!
    BUG: Code disappear when moving from code to design time and compiling
    REPRODUCTION:
    1.- Create a windows forms application (I've just tested C#)
    2.- Create a new usercontrol and compile
    3.- Create an inherited usercontrol from the first one
    4.- put a panel into the usercontrol2
    5.- put a button into the panel
    6.- now, without hiding the usercontrol2 design window do a build

    MSFT + MVP PLEASE HELP !!!
    I'll open MSDN issue as well


  • William Ryan eMVP

    #2
    Re: URGENT: Bug in VS.NET 2003

    Tamir:

    I just did it with VS 2003 and I created both controls within the same
    project following your instructions exactly, one where I created
    Usercontrol1 externally and built the inherited control inside project one.
    At each step of the way I put the exact same code
    "MessageBox.Sho w("Something" )" in the form's load event, in the
    usercontrol's constuctor, in the button's click event and in the panel's
    paint event. I tried every way i could to recreate this and I can't get it
    to happen, none of my code is disappearing.

    Anyone else?
    "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message
    news:u7gQ3qz7DH A.2524@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Please help.
    > I know that there are a lot of developers suffer from this bug in VS.NET.[/color]
    I[color=blue]
    > know to ho reproduce it quickly!!!
    > BUG: Code disappear when moving from code to design time and compiling
    > REPRODUCTION:
    > 1.- Create a windows forms application (I've just tested C#)
    > 2.- Create a new usercontrol and compile
    > 3.- Create an inherited usercontrol from the first one
    > 4.- put a panel into the usercontrol2
    > 5.- put a button into the panel
    > 6.- now, without hiding the usercontrol2 design window do a build
    >
    > MSFT + MVP PLEASE HELP !!!
    > I'll open MSDN issue as well
    >
    >[/color]


    Comment

    • Tamir Khason

      #3
      Re: URGENT: Bug in VS.NET 2003

      Thank you for response,
      This is just demonstration of the problem
      Do EXACTLY those steps (including complation) and while compiling second
      time LEAVE ON Design time of usercontrol2. You'll see that the button is
      disappears...

      "William Ryan eMVP" <dotnetguru@com cast.nospam.net > wrote in message
      news:OL6hIQ07DH A.1052@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Tamir:
      >
      > I just did it with VS 2003 and I created both controls within the same
      > project following your instructions exactly, one where I created
      > Usercontrol1 externally and built the inherited control inside project[/color]
      one.[color=blue]
      > At each step of the way I put the exact same code
      > "MessageBox.Sho w("Something" )" in the form's load event, in the
      > usercontrol's constuctor, in the button's click event and in the panel's
      > paint event. I tried every way i could to recreate this and I can't get[/color]
      it[color=blue]
      > to happen, none of my code is disappearing.
      >
      > Anyone else?
      > "Tamir Khason" <tamir-NOSPAM@tcon-NOSPAM.co.il> wrote in message
      > news:u7gQ3qz7DH A.2524@TK2MSFTN GP11.phx.gbl...[color=green]
      > > Please help.
      > > I know that there are a lot of developers suffer from this bug in[/color][/color]
      VS.NET.[color=blue]
      > I[color=green]
      > > know to ho reproduce it quickly!!!
      > > BUG: Code disappear when moving from code to design time and compiling
      > > REPRODUCTION:
      > > 1.- Create a windows forms application (I've just tested C#)
      > > 2.- Create a new usercontrol and compile
      > > 3.- Create an inherited usercontrol from the first one
      > > 4.- put a panel into the usercontrol2
      > > 5.- put a button into the panel
      > > 6.- now, without hiding the usercontrol2 design window do a build
      > >
      > > MSFT + MVP PLEASE HELP !!!
      > > I'll open MSDN issue as well
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Guest's Avatar

        #4
        Re: URGENT: Bug in VS.NET 2003

        [color=blue]
        > Thank you for response,
        > This is just demonstration of the problem
        > Do EXACTLY those steps (including complation) and while compiling second
        > time LEAVE ON Design time of usercontrol2. You'll see that the button is
        > disappears...
        >[/color]
        I have something similar.
        I have a control in a .NET dll, then my application uses that .NET dll.
        IF if change something to the control in the dll, then this control
        dissapears in my main form.
        (It gets deleted from my auto generated code). So I have to restore a backed
        up project.

        I know the reason, it somehow loses track of the dll with the modified
        control since I just recompiled it.
        Probably because the recompiled version have a different version number and
        the VS Toolbox doesn't find it anymore.

        I have learned that when I discover that my controls are lost on my main
        for, then I close VS without saving, and reopen it again.
        I can also reduce the problem by closing the VS immediate after rebuilding
        the control in the dll, and then start upVS again, so it can load the newer
        version.

        This problem also existed in Delphi, the wrong component library loaded, and
        the control dissapeared from the main form.
        Only setting back the zipped file would fix this.

        So I always zip my project before I modify visual controls.


        Comment

        Working...