By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,420 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,420 IT Pros & Developers. It's quick & easy.

URGENT: Bug in VS.NET 2003

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.Show("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" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:u7**************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #2

P: n/a
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" <do********@comcast.nospam.net> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
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.Show("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" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:u7**************@TK2MSFTNGP11.phx.gbl...
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


Nov 15 '05 #3

P: n/a
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...

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.
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.