How to check if window is really visible in Windows Forms?

后端 未结 9 1239
小蘑菇
小蘑菇 2020-12-30 09:59

Normally you use Form.Visible to check if Window is visible at all. But sometimes on the screen window is below other windows so it\'s really invisible.

So how to ch

9条回答
  •  囚心锁ツ
    2020-12-30 10:35

    You could use Windows API to enumerate all windows, retrieve their Z-Order and compare it with the Z-Order of your window. I think someone did this already here.

提交回复
热议问题