Some old dialogboxes are different with .NET Form. I can use the following to get all opened .NET Forms, such as Tasks, Element Information, Element Selection, etc.
foreach (Form form in Application.OpenForms)
{
MessageBox.Show(form.Text);
}
HTH, Yongan