User controls disappear from form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created some user controls which they inherit from TextBox, ComboBox e.t.c. They seem to work fine but sometimes when I open the project and load the form containing them (or maybe when I change the dll with my controls), then my controls are vanished but actually they are not deleted. When I check the code file (*.cs) I notice that the code has not changed at all, but I can not see my controls on the design form and during runtime. Does anyone know what I have to do?

Thanks in advance.
 
Hi,

I to Suffe from this issue. The Decleration of the cotrol dosnot dissapear
but the inisialitaion of the control does. Which gives you pleanty of
Object Reference not set to an Instance of an object Messages.

We have been trying to resolve this for ages. Is your user control in the
same project as the Form in which it is placed?

If not then the only thing we have found that seems to prevent the
dissapearence to Rebuild the solutition as soon as you load it and the to
rebuid regurarly as you go. We belive that it is to do with the reference
being "lost" or "Locked".

Hope this Helps


P.S IF anyone knows how to Fix this then let me know also.
 
Back
Top