467,219 Members | 1,439 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,219 developers. It's quick & easy.

Controls mysteriously going missing in designer

I don't know if this is the correct group to ask the question, but I'll ask
it here anyways!

I have a solution, written in vb.net 2003 (using Visual Studio 2003
Professional) which has multiple projects.

What I find is that from time to time (once every couple of days) that when
I go to run the solution (which compiles all the projects) that the compile
fails because a control is missing. The control in question is always a
usercontrol that is contained in one project and added onto a form in
another project.

Sometimes I find that simply rebuilding the project solves the problem...
Other times I have to manually go back and add the control to the form in
question - the form is always missing on the designer, but if I try to add
it and rename back to it's original name then it says that the name is
invalid (because it already exists - there are references to it in the
initalisation code).

The only other information that I can add is that it's nearly always the
same controls that go missing - there are about 4 in total that keep
disappearing. What is particularly strange is that the forms in question
are never ones that have been updated or are even opened since the last
compile and run.

Is this a known issue with vs2003? Is there a fix/workaround?

Thanks in advance
Simon
Nov 28 '05 #1
  • viewed: 1827
Share:
2 Replies
In your user control's assembly.vb, you might try changing the line for the
assembly autonumbering by replacing the * with a number so the build always
use the same assembly number. This seemed to work for me so far but it just
could be a coidence that it's now workin ok.
--
Dennis in Houston
"Simon Verona" wrote:
I don't know if this is the correct group to ask the question, but I'll ask
it here anyways!

I have a solution, written in vb.net 2003 (using Visual Studio 2003
Professional) which has multiple projects.

What I find is that from time to time (once every couple of days) that when
I go to run the solution (which compiles all the projects) that the compile
fails because a control is missing. The control in question is always a
usercontrol that is contained in one project and added onto a form in
another project.

Sometimes I find that simply rebuilding the project solves the problem...
Other times I have to manually go back and add the control to the form in
question - the form is always missing on the designer, but if I try to add
it and rename back to it's original name then it says that the name is
invalid (because it already exists - there are references to it in the
initalisation code).

The only other information that I can add is that it's nearly always the
same controls that go missing - there are about 4 in total that keep
disappearing. What is particularly strange is that the forms in question
are never ones that have been updated or are even opened since the last
compile and run.

Is this a known issue with vs2003? Is there a fix/workaround?

Thanks in advance
Simon

Nov 29 '05 #2
Interesting! I'll give it a go

Thanks
Simon
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
In your user control's assembly.vb, you might try changing the line for
the
assembly autonumbering by replacing the * with a number so the build
always
use the same assembly number. This seemed to work for me so far but it
just
could be a coidence that it's now workin ok.
--
Dennis in Houston
"Simon Verona" wrote:
I don't know if this is the correct group to ask the question, but I'll
ask
it here anyways!

I have a solution, written in vb.net 2003 (using Visual Studio 2003
Professional) which has multiple projects.

What I find is that from time to time (once every couple of days) that
when
I go to run the solution (which compiles all the projects) that the
compile
fails because a control is missing. The control in question is always a
usercontrol that is contained in one project and added onto a form in
another project.

Sometimes I find that simply rebuilding the project solves the problem...
Other times I have to manually go back and add the control to the form in
question - the form is always missing on the designer, but if I try to
add
it and rename back to it's original name then it says that the name is
invalid (because it already exists - there are references to it in the
initalisation code).

The only other information that I can add is that it's nearly always the
same controls that go missing - there are about 4 in total that keep
disappearing. What is particularly strange is that the forms in
question
are never ones that have been updated or are even opened since the last
compile and run.

Is this a known issue with vs2003? Is there a fix/workaround?

Thanks in advance
Simon

Nov 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jim | last post: by
2 posts views Thread by Rachel Suddeth | last post: by
1 post views Thread by E. Tom Jorgenson | last post: by
8 posts views Thread by Aaron Smith | last post: by
15 posts views Thread by rizwanahmed24@gmail.com | last post: by
3 posts views Thread by =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.