Depart Auto code from forms code.

  • Thread starter Thread starter Empi
  • Start date Start date
E

Empi

Hi,

Just got this HUGE c#.net cf2 project to debug.
For some reason, the programmer used the same form.cs
for his code, and for the generated form controls.
To make things worse, some of his code is in between the lines of the
generated code.
How can I seperate it?

Thanks.
 
Yep. I know that.
But the current code is all mixed up - programmers code with auto generated
code.
Is there a workaround to automatically remove the auto generated code or
regenerate it?

Thanks.
 
Make any change in the designer. It should completely wipe out the
InitializeComponent method (which is why you shouldn't put code in there in
the first place) and replace it with the designer-generated code.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Back
Top