简体   繁体   English

启动旧桌面应用程序,即使Windows 8开始屏幕是前景窗口?

[英]Launch legacy desktop app, even if Windows 8 Start Screen is foreground window?

I have a C# console app that is trying to start a legacy desktop app. 我有一个C#控制台应用程序正在尝试启动旧版桌面应用程序。 I want this legacy desktop app to start and display even if the current foreground window is the Windows 8 Start Screen or a Start Screen application. 即使当前前台窗口是Windows 8开始屏幕或开始屏幕应用程序,我希望这个旧桌面应用程序启动和显示。

If I start the legacy desktop app, it will launch, but it launches behind the Windows 8 Start Screen and does not show. 如果我启动旧桌面应用程序,它将启动,但它将在Windows 8开始屏幕后面启动,但不会显示。 If I click on the "Desktop" tile, I see the app has launched. 如果我点击“桌面”磁贴,我会看到该应用已启动。 But I want the app to launch /AND/ show. 但我想让应用程序启动/ AND / show。

Is there a way to both start a legacy desktop application and show it, even if the Windows 8 Start Screen is showing?? 有没有办法启动旧桌面应用程序并显示它,即使Windows 8开始屏幕显示?

Any ideas?? 有任何想法吗??

Show desktop 显示桌面

From https://amalhashim.wordpress.com/2012/04/13/c-show-desktop/ 来自https://amalhashim.wordpress.com/2012/04/13/c-show-desktop/

Using C# we can write code to Show Desktop. 使用C#,我们可以将代码写入Show Desktop。 Same effect as clicking on “Show Desktop” icon on Taskbar. 与单击任务栏上的“显示桌面”图标效果相同。

First, add reference to “Microsoft Shell Controls And Automation” from COM tab of “Add Reference” dialog 首先,在“添加引用”对话框的COM选项卡中添加对“Microsoft Shell控件和自动化”的引用

Shell32.ShellClass shell = new Shell32.ShellClass();
shell.MinimizeAll();

Or use this approach: Minimizing all open windows in C# 或者使用这种方法: 最小化C#中所有打开的窗口

Check if Windows 8 start screen is active 检查Windows 8启动屏幕是否处于活动状态

IMetroMode::IsLauncherVisible in C# via pInvoke? 通过pInvoke在C#中IMetroMode :: IsLauncherVisible?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 以编程方式从Windows 8的“开始”(或“都市”)屏幕启动桌面应用程序 - Bring up desktop app from Start(or metro) screen in Windows 8 programatically Windows 8启动画面图块,基于桌面快捷方式 - Windows 8 start screen tile, based on desktop shortcut 如何从VoipHttpIncomingCallTask​​启动Windows Phone前景应用程序? - How to Launch Windows Phone Foreground App from VoipHttpIncomingCallTask? 如何在Windows 10 IoT上启动/切换前台应用程序 - How can I launch/switch foreground app on Windows 10 IoT 如何在不使用安装程序的情况下在Windows 8“开始”屏幕上放置Desktop App快捷方式? - How can I place a Desktop App shortcut on the Windows 8 Start screen without using an installer? 在Windows 8上设置前景窗口 - Set foreground window on Windows 8 隐藏一个桌面窗口或禁用关闭按钮-Windows Desktop App - Hide one desktop window or disable closing button - Windows Desktop App 使用Windows Desktop App Converter,可以从Windows启动吗? - Using Windows Desktop App Converter, Is it possible to start with Windows? Windows 10通用应用启动时的屏幕尺寸不起作用 - Windows 10 Universal app screen size on launch not working Windows启动时启动窗口 - Launch Window on Windows startup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM