EXE and Dev environment.

  • Thread starter Thread starter T Clancey
  • Start date Start date
T

T Clancey

How can I tell if my application is running in the development environment
or as an installation in vb net 2003/2005? I used to be able to do this in
vb6.

Cheers,
Tull.
 
T said:
How can I tell if my application is running in the development environment
or as an installation in vb net 2003/2005?

If System.Diagnostics.Debugger.IsAttached Then
' works in VB'2003; I've yet to try it in VB'2005.

HTH,
Phill W.
 
Hello Phill W.,

Except you can attach a debugger to any process. Your app should NOT change
it's behaviour just because a debugger is attached.

-Boo
 
So is there an answer?

Cheers,
Tull.

GhostInAK said:
Hello Phill W.,

Except you can attach a debugger to any process. Your app should NOT
change it's behaviour just because a debugger is attached.

-Boo
 
Hello T,

The answer is, your app should not change it's behaviour if a debugger is
attached. I was simply indicating that an attached debugger does not positively
identify an IDE. It only identifies a debugger.

-Boo
 
Hello David,

That will tell you if your control is being hosted in a designer, yes.

It will not tell you if your application is running from the IDE. It will
not tell you if the hosting environment is the VS IDE, some other IDE, or
just some yahoo that flipped your control over into design mode.

-Boo
 
Back
Top