Re: disable partial class generation by designer

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Jack Jackson" <jjackson-nsp@xxxxxxxxxxxxxxxx> wrote in message
news:jmf315djrmr6h0kdadq24rj967ip59hci1@xxxxxxxxxx
On Mon, 18 May 2009 20:46:16 +0200, "Yves Dhondt"
<yves.dhondt@xxxxxxxxx> wrote:


"Jack Jackson" <jjackson-nsp@xxxxxxxxxxxxxxxx> wrote in message
news:jv331590dorio3qgkc2qiu5v4ttnv1728j@xxxxxxxxxx
On Mon, 18 May 2009 17:51:52 +0200, "Yves Dhondt"
<yves.dhondt@xxxxxxxxx> wrote:

Hello,

...

Well for starters, when you remove just the stub, the project will no
longer
compile as the designer still contains the code pointing to the stub. So
this makes me have to delve into the designer code to actually make my
code
compile again.

You still haven't said what code is left behind that you have to
remove. I don't remember ever having to remove anything from the
.designer file when I remove a method.

I assume he is referring to the event subscription code which can be cleaned
up by removing the event handler in the designer property page.


At the end of my forms lifetime, I have resources to dispose of. Again, I
have to dig into the designer as there the function is already used and my
code needs to be added.

That is true. I move the entire Dispose method into the main file.

Why don't you just use the FormClosing or FormClosed events ?



.



Relevant Pages

  • Re: What is the difference detween SRC and CODEBEHIND Tags?
    ... Code behind will compile quicker on application startup because large parts ... >> CODEBEHIND specifies the name of the compiled file that contains the ... It tells the designer where to find the ... >> work with at design time. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VB6 - Out of memory error opening form in IDE
    ... view of the form or compile the project, I get the out of memory error. ... The project has been worked on and compiled numerous times in ... If you're using controls from a 3rd party vendor, add them back to that new ...
    (microsoft.public.vb.general.discussion)
  • Re: custom component (not control) showing as gray in toolbox
    ... i have 2 bat files i use to compile the design time dll, ... This compiles my designer controls with no problem but I get the error above ... an error when i compile the runtime version of the dll from VS. ...
    (microsoft.public.dotnet.framework.compactframework)
  • ModelSim Designer
    ... Is anybody out there actually using ModelSim Designer? ... single license as well as 2 PE licenses. ... I had to go to each level in the heirarchy and compile manually ... and it complained about some constants declared in a package. ...
    (comp.arch.fpga)
  • Compile problems...
    ... I have and app that has about a dozen forms and a globals.cs file ... compile error. ... files andnow I can't get my app to compile. ... The designer could not be shown for this file because none of the ...
    (microsoft.public.dotnet.languages.csharp)