Question : active form
Answered by : concerned-centipede-zy0f0799i9ad
// using Linq:
var lastOpenedForm = Application.OpenForms.Cast<Form>().Last()
Source : https://stackoverflow.com/questions/1126829/how-can-i-get-the-reference-to-currently-active-modal-form/1127323 | Last Update : Sun, 28 Nov 21