Check If Your Application is Running in an IDE or as an Exe
Category:Forms and Controls
Version Compatibility: Visual Basic 6
The following function allows you to check if your application is running as an executable, or from the VB IDE.
Instructions: Copy the declarations and code below and paste directly into your VB project.