Is there a way of telling if a usercontrols parent is running in debug mode (in the VB IDE) or in compile mode (compiled and out in the real world)

and help would be greatly appreciated.