Determine if the app is running in the IDE
Often a developer needs to know if the app is running from the IDE. Here is a VERY simple way of determining that. Because Debug statements are not compiled into the EXE use the following code:
Instructions: Copy the declarations and code below and paste directly into your VB project.