Is there anyway to detect if you are running in the IDE?
Similar to this in VB
http://www.vbforums.com/showthread.php?t=231468