Find Active Form in WinFormsWhen more than one forms opened, how to find which one is in active state.
Note: Am not using any mdi stuff.
FormCollection fc = Application.OpenForms;
foreach (Form frm in fc)
//code here to find active form
Fo example: please assume five forms are opened and each one has textbox. Now I need to find which form has recently selected or where the focus is in textbox.
Any help must be appreciated.