Herman
Well-known member
So, I am facing a pretty stupid simple problem, I was wondering if anyone has a solution that wouldn't involve calculating rectangles and overlaps.
I just need to know if a particular form is visible on screen, meaning not minimized, and not hidden by another window on top of it. Pretty basic stuff, but from what I can see there is nothing in .Net or Win32 that specifically addresses that. Sure I can enumerate all forms, check which ones have an area overlapping the area of my form, then check the ZOrder property, but that seems like such a detour for a simple little property that could say true or false...
Is there another simpler way of doing this that I have overlooked?
I just need to know if a particular form is visible on screen, meaning not minimized, and not hidden by another window on top of it. Pretty basic stuff, but from what I can see there is nothing in .Net or Win32 that specifically addresses that. Sure I can enumerate all forms, check which ones have an area overlapping the area of my form, then check the ZOrder property, but that seems like such a detour for a simple little property that could say true or false...
Is there another simpler way of doing this that I have overlooked?