473,385 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
2 2039
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim | last post by:
I'm a little new to the C# way of doing thisgs... Although I've done this sort of thing before in VS 6 / MFC... creatnig controls, ActiveX controls, etc. Creating controls in MFC is pretty...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
1
by: Josh | last post by:
I am trying to move some of my more common controls into user controls. However, I seem to have problems maintaining state of databound controls that are contained within user controls. On...
1
by: E. Tom Jorgenson | last post by:
I've run into a problem on a couple of projects that I think I've identified - but would like confirmation of what I think is going on. Also interested in any fast solutions to fix the user...
6
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
8
by: Aaron Smith | last post by:
I have a problem... Have a form, made some changes.. now all the controls are gone. I didn't make any changes to the designer generated region.. I'm not really sure what happened to them, but this...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
3
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all It is maybe a stupid question, but I have some trouble with Inheritance. For example: I create a new class with one form. On this form I place on the bottom a Panel and on this Panel...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.