Question:
Is there a simple test that can determine whether a VB program is running in the IDE or as a compiled exe?
Answer:
Yes there is a very simple test. Name the exe differently from the project, and then check App.ExeName. If the app is running in the IDE, then it returns the name of the project. If the exe is running, then it returns the name of the exe.