You know when something happens in an application thats not on the foreground, it flashes blue on the windows taskbar? Is there an API call to make that happen?

Also which property of the main form tells you if it is currently the top level application (screen-wise)

Thanks