>I use the following code to determine if I am 'in' the IDE. This works fabu if there is a form in the app. In other apps I need a way to make the same determination. I don't want to look for the running VB.EXE as I may compile and run the compiled file from another app in the IDE...
>
>Anyone have any good ideas?
I don't know it is a good idea (like you asked for) but, I use this:
Private Sub Command1_Click()
Dim intI As Integer
On Error Resume Next
Debug.Assert intI / 0
If Err.Number = 0 Then
MsgBox "Compiled version"
Else
MsgBox "In IDE version"
End If
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com