Sure, I get that when actually RUNing. What I am really after is how to
determine that a control or form is running in (or being run by) the IDE. I
have a situation where some code needs to reference the Application object,
which works perfectly at runtime, but falls over in the IDE when trying to
display the form in design mode, because the Application object doesn't
exist until runtime.
Bill
Quote:
> You should always be running the Exe, just because of how .Net works
> > In VB6 we could determine if we were running in the IDE by using a
> > Debug.Print 1/0 statement and trapping for the error (which would only
> occur
> > in the IDE).
> > How does one now determine we are running from the .Net IDE as opposed
to
> > running the exe?
> > Bill