formsdelphidelphi-2006

How to get a list from all opened forms of my software?


I want to ask the user to close all opened forms before terminate my application.

How can I automatically get a list from opened forms?

I'm using Delphi 2006, and don't using form's Auto-Create, but I'm using the auto created form's referenced var with Application.CreateForm.

My regards.


Solution

  • Have a look at Screen.FormCount and Screen.Forms.