问题描述:

If I want to find out the top Form in my WinForms application, or the one that was displayed last (no topmost flags used), can I use this:

Form topForm = System.Windows.Forms.Application.

OpenForms[System.Windows.Forms.Application.OpenForms.Count - 1];

相关阅读:
Top