Re: Surprised to see UserControls Executing During Compilation!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Joseph Geretz wrote:
Were there any exposed properties in the test UC?

No, that might be a good point to investigate.

I'm still pondering whether to care. <g>

Yeah, me too ;-). It'd be on my own time...

On the main, this evidently works well since among all of us, only
one of us (me) has *ever* seen a compile time issue where this made a
difference. Even that wasn't in our own code - we purchased a third
party control with source code and then proceeded to to something
else non standard with it; that is wrap it inside a hosting user
control and then host the outer control on a form, all of which exist
in the same user control project (whew!) and then proceed to compile.

Yikes! Don't do much with contained controls; maybe that's why I never
stumbled on this. When I do contain something, more often than not it's
been CreateWindowEx'd.

Interestingly enough we did note at the time that when compiling
interactively, with the host form open in the IDE - no problem.
However when compiling in batch (our automated compiles are performed
in batch) the compile would fail.

Y'know, I bet you could tweak that RunMode routine of yours, to check the
IDE's caption to determine if it's compiling? Nah... sorry, just
checked... thought it changed.

Actually, I do care. I'm just pondering whether I care enough to do
anything about it ;-)

Been there. <g> Good luck!
--
Working without a .NET?
http://classicvb.org/


.



Relevant Pages

  • Re: Difficulties programming a command button
    ... Twice when I tried to compile Access hung and I just ... and selecting 'Yes' opens the Excel file. ... I doubled checked the sheet names to what I had in the ... The name for the control for the equipment is “txtEquipment”. ...
    (microsoft.public.access.modulesdaovba)
  • Re: User Controls are dissapearing at designTime
    ... go into configuration manager and set all control projects to compile ... The user control is embedded in the project (a ... > reference in the project is not pointing anymore to binary. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Access Violation Exception
    ... In VB6, in the project's properties, go to the Compile tab and select ... This will create a PDB file when you compile ... where the error occurred in the custom control. ... > I have a vb6 app with various custom controls. ...
    (microsoft.public.vb.winapi)
  • Re: Access Violation Exception
    ... This will create a PDB file when you compile ... > where the error occurred in the custom control. ... >> I have a vb6 app with various custom controls. ... App enters into a loop where it displays the exception error and it ...
    (microsoft.public.vb.winapi)
  • Re: EXE hangs!
    ... I have been logging to a textbox on my application. ... to a property of an ActiveX control. ... I was checking the state of the DNS microphone control at a somewhat ... compiles into, so that I can write things that compile efficiently. ...
    (microsoft.public.vb.enterprise)