BringToFront sets the last active window as the topmost window on the desktop above all other applications. procedure BringToFront; Description Use BringToFront to find the window owned by the MainForm that was last active and bring it to the foreground. BringToFront also tests to see if the window is visible and enabled before making it the topmost window. Vincent Snijders.