Visual Studio arbitrarily removes controls from Forms

  • Thread starter Thread starter jack Charbonneau
  • Start date Start date
J

jack Charbonneau

I am working on a complicated project with several forms, and several
custom controls. Sometimes (usually when i modify a custom control - but
not always), VS.Net will either remove controls from my forms, or reset
all the properties to their default values.

This is UNBEARABLY irritating! Just now I spent over 2 hours recreating
forms from my last check-in - a nighmare.

Does anybody have an idea as to what's hapenning here, or how to
minimize it?

Thanks.
 
Hello Jack,

We have been having the same issue and the only way to avoid this we found
was NEVER open
a form in the desginer UNTIL you have successfully made changes to the user
controls and compiled the solution, AND closed all user-control related
files.
 
I've seen this problem before in this NG. The solution (in at least one
case) was to make sure that your form is the first type defined in the
..cs file -- e.g., if you have an enum or a class defined before the Form
class, then you'll get this behavior. Check your source to see if this
is the case. If so, move the offending declaration to the end of the
file, or into a separate file.
 
These solutions are inadequate. This is becoming a major pain. If there
are any Microsoft people listening could you please point me to an
article about why and when Visual Studio mysteriously removes controls
from Forms?

This is really ripping into my productivity!

Thanks.
 
Hi Jack,
Sorry, I haven't met the problem before. I'll post it on our internal
discussion group to see if anyone have met the problem and got a better
work around.



Kind regards,

Ying-Shen Yu [MS]
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| From: jack Charbonneau <[email protected]>
| References: <[email protected]>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: Re: Visual Studio arbitrarily removes controls from Forms
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Date: Fri, 05 Sep 2003 00:45:49 -0700
| NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51697
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| These solutions are inadequate. This is becoming a major pain. If there
| are any Microsoft people listening could you please point me to an
| article about why and when Visual Studio mysteriously removes controls
| from Forms?
|
| This is really ripping into my productivity!
|
| Thanks.
|
|
|
|
|
| Don't just participate in USENET...get rewarded for it!
|
 
Hi Jack,
I've post your questions on the internal discussion group for a few
days, and I got lots of the similiar issues, but unfortunately no better
work around until now, It really seems like a problem of VS.NET, and we
have began to investigate this problem. I'll be very appreciate if any of
you could provide more information on this.
We need some more reliable repro steps or sample, this will help to narrow
the problem quicker, thanks a lot!


Kind regards,

Ying-Shen Yu [MS]
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
| X-Tomcat-ID: 234001283
| References: <[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Ying-Shen Yu[MS])
| Organization: Microsoft
| Date: Fri, 05 Sep 2003 09:25:24 GMT
| Subject: Re: Visual Studio arbitrarily removes controls from Forms
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
| Message-ID: <yZO4l#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Lines: 42
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:51706
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Jack,
| Sorry, I haven't met the problem before. I'll post it on our
internal
| discussion group to see if anyone have met the problem and got a better
| work around.
|
|
|
| Kind regards,
|
| Ying-Shen Yu [MS]
| Microsoft Support Engineer
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
| You assume all risk for your use. 2001 Microsoft Corporation. All rights
| reserved.
| --------------------
| | From: jack Charbonneau <[email protected]>
| | References: <[email protected]>
| | X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| | Subject: Re: Visual Studio arbitrarily removes controls from Forms
| | Mime-Version: 1.0
| | Content-Type: text/plain; charset="us-ascii"
| | Content-Transfer-Encoding: 7bit
| | Message-ID: <[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.windowsforms
| | Date: Fri, 05 Sep 2003 00:45:49 -0700
| | NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| | Lines: 1
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.windowsforms:51697
| | X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
| |
| | These solutions are inadequate. This is becoming a major pain. If there
| | are any Microsoft people listening could you please point me to an
| | article about why and when Visual Studio mysteriously removes controls
| | from Forms?
| |
| | This is really ripping into my productivity!
| |
| | Thanks.
| |
| |
| |
| |
| |
| | Don't just participate in USENET...get rewarded for it!
| |
|
|
 
Back
Top