Vanishing Controls

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi

I am having a bit of a nighmare with VS Projects. Every now and again
some custom control vanish from the form in design mode. The controls
are there in the code and it compiles file. But when it runs the
control are not set to instances of an object.

Usually i can fix this by closing the IDE and reloading it. However if
i don't spot it soon enough this does not work and i end up haveing to
manually delete the controld from the windows generated bit and drop
them back on the form, which is a right royal pain in the ...

Anyone know what is causing it? I'm in VS2003 and talking about
projects referenced within the same solution.

Cheers

Tom
 
* Tom said:
I am having a bit of a nighmare with VS Projects. Every now and again
some custom control vanish from the form in design mode. The controls
are there in the code and it compiles file. But when it runs the
control are not set to instances of an object.

Are the custom controls part of the same project, part of another
project in the same solution or part of another solution?
 
You may want to play around with the build order, but no guarantee that
this will help. You can change the project build order by selecting a
project in the solution explorer and choose "Change Build Order..." from
its context menu.
 
You may want to play around with the build order, but no guarantee that
this will help. You can change the project build order by selecting a
project in the solution explorer and choose "Change Build Order..." from
its context menu.

Yea, i think that you are right... this usually happens when i have
been adding/removing references and then updating the reference
folders... I am sure there is a bug in there somewhere but i am not
sure how to replicate it. Completely missed it this time and it's
landed me in a complete mess... ahh well... cheers.
 
* Tom said:
Yea, i think that you are right... this usually happens when i have
been adding/removing references and then updating the reference
folders... I am sure there is a bug in there somewhere but i am not
sure how to replicate it. Completely missed it this time and it's
landed me in a complete mess... ahh well... cheers.

Did it solve your problem *not sure about that*.
 
Yea, i think that you are right... this usually happens when i have
Did it solve your problem *not sure about that*.

Na.. I'm in the process of deleting all the code in the Windows
Generated it so that i can add the controls back on to the form. I
have got a feeling that if you close the IDE after the references have
changed things are fine... it is only when you mess around with code
do you get to the point when you cannot resolve the problem with a
simple restart.

Cheers though.
 
Back
Top