Re: Surprised to see UserControls Executing During Compilation!



"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
news:uSJ87ZnjGHA.3620@xxxxxxxxxxxxxxxxxxxxxxx
Joseph Geretz wrote:
I can tell the difference between design time and run-time, but is
there any way to tell when my control is being compiled, or is
running within a host which is undergoing compilation?

I guess I'd be surprised, as well. What did you see that led you to ask
this question?

This is suprising, vb instantiates usercontrols during compile and executes
readproperties events etc. The solution is to use Ambient.UserMode.

Michael


.



Relevant Pages

  • Re: Visual Studio and IIS
    ... 1996), I was working on embedded systems and writing code in C, and ... there was no differential compilation, so the whole system had to build ... A compilation took 8 minutes. ... host machine only has 1GB. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to send packets out and come back ?
    ... Thanks, Toni, ... One problem in compilation: sizeofis unknown. ... don't need to obtain the current host address "client") ...
    (comp.os.linux.networking)
  • Re: Conditional Compilation in Ada
    ... with a some thousands of files project. ... But surely not all of them are scenario dependent. ... compilation which turned up some part of the code to a commented one, ... --# end If HOST ...
    (comp.lang.ada)
  • Re: Surprised to see UserControls Executing During Compilation!
    ... there any way to tell when my control is being compiled, ... running within a host which is undergoing compilation? ...
    (microsoft.public.vb.controls)
  • Re: AppActivate + pid
    ... > I'm using a fast and versatile script interpreter with compilation ... > I'm trying to mix the WSH AppActivate method with some win32 api ... here is the control ID of a notepad's Edit class: ...
    (microsoft.public.scripting.wsh)

Loading