If you want to catch the event in the application and not in some form it is better to use the ApplicationEvents onMinimize procedure found in ApplicationEvents component in the Additional palette. This worked for me.