F
fedrok
HI!
Here is my problem: I need to detect when a sub run in Microsoft
Visual Studio IDE, or in an exe stand alone file (deployed!).
With old Visual Basic 6.0 the trick was this:
Private Function RunningIDE() As Boolean
RunningIDE = True
On Error Resume Next
Debug.Print 1 / 0
If Err.Number = 0 Then
RunningIDE = False
End If
On Error GoTo 0
End Function
RunningIDE returns true when my program is in DEBUG mode, in Visual
Studio IDE else returns false!
How can I do the same in Visual studio .NET?????

thx!
ops:
Here is my problem: I need to detect when a sub run in Microsoft
Visual Studio IDE, or in an exe stand alone file (deployed!).
With old Visual Basic 6.0 the trick was this:
Private Function RunningIDE() As Boolean
RunningIDE = True
On Error Resume Next
Debug.Print 1 / 0
If Err.Number = 0 Then
RunningIDE = False
End If
On Error GoTo 0
End Function
RunningIDE returns true when my program is in DEBUG mode, in Visual
Studio IDE else returns false!
How can I do the same in Visual studio .NET?????

thx!
