EXE and Dev environment.

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.
 
P

Phill W.

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.
 
G

GhostInAK

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
 
T

T Clancey

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
 
G

GhostInAK

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
 
G

GhostInAK

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Create Registry Entry On Install. 5
VB 2005 and Exchange Server 3
Dragging a control 2
EXEs 5
Number of database connections 4
VB Net 2005 and Email! 2
vb2005 and ce net 4.2 7
VB Net and ADOX 8

Top