in what event would i put code to check if the form is being moved off the desktop screen? i know how to code it once i figure out where to put it

thanks