A way get the count of forms showing is...
I believe the same information is returned byScreen.CustomFormZOrderCount;
You're almost right. I remebered having seen
Forms[] and
FormCount properties but I thought (incorrectly) they were in
TApplication and was somewhat baffled when I couldn't find them; they are, indeed, properties of
TScreen. The one I was looking for is, of course,
Screen.FormCount.
Sorry for the mistake
And btw, every place I talked about
Application.Components[i] should be replaced by
Screen.Forms[i] which indeed lists
all forms, not just those parented by
Application, and returns a TForm reference.
Good catch, Howard