Information générale
Titre:
Windows Form Controls Disappeared
I am having this problem second time and it drives me crazy. I have a library with my controls as a project in my solution. I added a new control which gave me an error if I built this library project. Instead of Build I accidentally chose Rebuild option. This option rebuilt my whole solution. It looks like the error in the library project did not let the main project recognize the library. All the library’s controls disappeared from the forms in the main project. Fixing the error in the library project does not bring them back. I have to manually drop the controls from my toolbox. Even worse, declarations of the controls remain in the code and I cannot name the controls without deleting the old code.
I had this problem before when I tried to add a new control from the library to my toolbox. I suspect that the version synchronization has been broken, but don’t know how to avoid that. My main project has a reference to the library project. Why the This.Control.Add() commands vanished instead of just giving errors? Is there more intelligent way to avoid such disaster?
Thanks in advance
Slava
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement