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

后端 未结 9 1351
小蘑菇
小蘑菇 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:14

    To answer the question as asked, you could try calling the WindowFromPoint API function to find the window at various points on your form, and check whether it returns the handle of whatever you expect to be at that point.

提交回复
热议问题