In the hook they are calling the form "m_frmHooked" with a Sub named "AppFocus", so is the form you are using named m_frmHooked?