aktywna forma
// using Linq:
var lastOpenedForm = Application.OpenForms.Cast<Form>().Last()
Concerned Centipede
// using Linq:
var lastOpenedForm = Application.OpenForms.Cast<Form>().Last()