Yeah you can! This was converted years ago, from some even older VB6 code..
but it still works!
Public Function AreWeInTheIDE() As Boolean
' Determine if we're in the IDE or not
Dim vInDevelopment As Boolean
System.Diagnostics.Debug.Assert(CheckIDE(vInDevelo pment), String.Empty)
Return vInDevelopment
End Function
Private Function CheckIDE(ByRef pStatus As Boolean) As Boolean
' This function is only called in the IDE - so return true to confirm
this is development
pStatus = True
Return True
End Function
____________________________________________
The Grim Reaper
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Any ideas how I can determine this?
You can't really. But you can check if there's a debugger attached to
the process with System.Diagnostics.Debugger.IsAttached.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.