I have a program where I have several control event handlers being implemented. I have a serious, tedious problem that keeps occurring in Visual Studio 2005 Team C#.
When I switch from the code view to design view and the form is redrawn/reconstructed or whatever happens when the form is displayed in design mode, my event handlers (not all but most of them) get deleted from the mainform.designer.cs file! This happens maybe once out of 15-20 time when switching back and fourth.
When this happens, obviously all my button clicks and other events become broken and I have to manually add these event handlers back to the file, which is extemely time consuming.
Has anyone else experienced this problem, or knows of a solution?
When I switch from the code view to design view and the form is redrawn/reconstructed or whatever happens when the form is displayed in design mode, my event handlers (not all but most of them) get deleted from the mainform.designer.cs file! This happens maybe once out of 15-20 time when switching back and fourth.
When this happens, obviously all my button clicks and other events become broken and I have to manually add these event handlers back to the file, which is extemely time consuming.
Has anyone else experienced this problem, or knows of a solution?