If there are multipple running applications, I need to get the most recently used. I know that I can find all running instances of my app using Process, but how to find from this list most recently used instance?
如果有多个正在运行的应用程序,我需要获得最近使用的应用程序。我知道我可以使用Process查找我的应用程序的所有正在运行的实例,但是如何从此列表中找到最近使用的实例?
2 个解决方案
#1
0
Use Process.StartTime Property of Process class to know which instance started most recently.
使用Process类的Process.StartTime属性来了解最近启动的实例。
#2
0
I found other solution using Z-Order window How to get the z-order in windows?
我使用Z-Order窗口找到了其他解决方案如何在Windows中获取z顺序?
#1
0
Use Process.StartTime Property of Process class to know which instance started most recently.
使用Process类的Process.StartTime属性来了解最近启动的实例。
#2
0
I found other solution using Z-Order window How to get the z-order in windows?
我使用Z-Order窗口找到了其他解决方案如何在Windows中获取z顺序?