DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 11:39:35 +0300,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Empi
          2    ctacke/ ctacke[at]opennetcf[dot]com
                 3    Empi
                        4    ctacke/ ctacke[at]opennetcf[dot]com


Depart Auto code from forms code.   
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.
Date:Fri, 10 Aug 2007 11:39:35 +0300   Author:  

Re: Depart Auto code from forms code.   
Use a partial class.


-- 

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


"Empi"  wrote in message 
news:eR1O8ny2HHA.536@TK2MSFTNGP06.phx.gbl...

> 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.
> 
Date:Fri, 10 Aug 2007 07:16:05 -0500   Author:  

Re: Depart Auto code from forms code.   
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.

"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
news:eBPdJh02HHA.5116@TK2MSFTNGP04.phx.gbl...

> Use a partial class.
>
>
> -- 
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded World
> www.OpenNETCF.com
>
>
> "Empi"  wrote in message 
> news:eR1O8ny2HHA.536@TK2MSFTNGP06.phx.gbl...
>> 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.
>>
>
> 
Date:Mon, 13 Aug 2007 19:52:44 +0300   Author:  

Re: Depart Auto code from forms code.   
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


"Empi"  wrote in message 
news:uhwPfpc3HHA.5160@TK2MSFTNGP05.phx.gbl...

> 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.
>
> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message 
> news:eBPdJh02HHA.5116@TK2MSFTNGP04.phx.gbl...
>> Use a partial class.
>>
>>
>> -- 
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Managed Code in an Embedded World
>> www.OpenNETCF.com
>>
>>
>> "Empi"  wrote in message 
>> news:eR1O8ny2HHA.536@TK2MSFTNGP06.phx.gbl...
>>> 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.
>>>
>>
>>
>
> 
Date:Mon, 13 Aug 2007 13:50:51 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us