我想获取当前在 Windows 上运行的应用程序的名称。
例如,如果我使用 i.e,此函数提供“Internet Explorer”,或者如果我使用 Google Chrome,则提供 Chrome...
最佳答案
System.AppDomain.CurrentDomain.FriendlyName
或者也许
System.Reflection.Assembly.GetExecutingAssembly()
或者如果您的意思是您想要事件窗口的名称,那么您应该查看;
How do I get the title of the current active window using c#?
关于c# - C#中如何获取当前应用程序的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16050235/