Groups | Blog | Home
all groups > visual studio .net ide > november 2004 >

visual studio .net ide : Property


Mark Brennan
11/23/2004 3:47:26 PM
Is there a property that will can be checked to determine if VB app is
running from the IDE or from the executable in the bin directory?


Eric Cadwell
11/24/2004 3:23:13 PM
There's alot of hacks for it. Nothing built in.

http://groups.google.com/groups?hl=en&lr=&q=running+IDE+group%3A*dotnet*&btnG=Search

Public Function IsInIDE() As Boolean
Dim sName As String
sName = Process.GetCurrentProcess().ProcessName

If sName = "devenv" Then '- or whatever the name of the VS.NET IDE
process is
Return True
Else
Return False
End If
End Function


HTH;
Eric Cadwell
http://www.origincontrols.com

AddThis Social Bookmark Button