I have a tray icon application. If I click on the tray icon I want my application, if already visible with (Application.ShowMainForm := True;), to be displayed on top of all the other windows. Also if my application is not visible then it must be showed. So there are two states: 1. Application is visible but not on top & 2. Application is not visible. How will I know if it's visible and not on top so that I can put it on top? And how would I put it on top? Thanx in advance!