[英]Get second active window vb.net
I need to create a form where AlwaysOnTop = True
when the browser is visible. 当浏览器可见时,我需要创建一个其中AlwaysOnTop = True
的表单。 This creates some sort over "overlay". 这会在“覆盖”上创建某种排序。 The logic works like this: 逻辑如下所示:
How I did it: 我是怎么做到的:
I already completed the function that checks what the first active window is, 我已经完成了检查第一个活动窗口是什么的功能,
I'm stuck on getting the function that checks what the second active window is. 我一直在获取检查第二个活动窗口是什么的功能。
I'm not sure that there's such as thing as a "Second active window" - its either active or its not. 我不确定是否存在诸如“第二活动窗口”之类的东西-它是活动的还是不活动的。
Why don't your leave you active window checker running after the first step of detecting the browser. 在第一步检测到浏览器之后,为什么不让活动窗口检查器运行?
You can detect when the active window is no longer your form and hide your overlay then. 您可以检测到活动窗口何时不再是您的窗体,然后隐藏您的叠加层。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.