I\'m wondering if it\'s possible to use reflection to locate an object at runtime? This is more of an experiment than a practical requirement.
I\'ve used the .GetTyp
Jon Skeet is correct that it isn't possible for just any arbitrary type.
For your concrete example, it is possible. And you don't need to p/invoke EnumWindows or use Form.FromHandle()
EnumWindows
Form.FromHandle()
Form f = Application.OpenForms.Where(x => x.GetType().Name == "FormIWant").FirstOrDefault();