从任务管理器WPF C#中显示为“任务”停止窗口 [英] Stop windows from showing up as 'tasks' from task manager WPF c#

查看:248
本文介绍了从任务管理器WPF C#中显示为“任务”停止窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开多个窗口的程序。我已经使用这种方法隐藏他们ALT + TAB。现在我需要新的窗口,停止显示在任务管理器的任务选项卡了。

I have a program that opens multiple windows. I have used this method to hide them from ALT+TAB. Now I need the new windows to stop showing up in the 'tasks' tab of task manager.

我不需要这个过程不会在任务管理器中显示出来,我只是不想让我的所有程序打开的任务,以显示在窗口。标签

I don't need the process not to show up in task manager, I just don't want all the windows my program opens to show up in the 'task' tab.

下面是什么,我试图摆脱的图片:的http://i1096.photobucket.com/albums/g324/thezaza101/Tasklist.jpg

Here is a picture of what I'm trying to get rid of: http://i1096.photobucket.com/albums/g324/thezaza101/Tasklist.jpg

-Thanks

推荐答案

解决了由于大卫赫弗南。

Solved thanks to David Heffernan.

在我的主窗口中,我增加。静态窗口字段,引用我的主窗口

On my main window i added a static window field which references my main window.

public static Window main;
Public MainWindow()
{
main = this;
}

在我需要从任务管理器和ALT + TAB隐藏的窗口,我让我的主窗口,它的所有者:

On the windows I need to hide from task manager and ALT+TAB, I made my main window its owner:

public HiddenWindow()
{
this.Owner = MainWindow.main;
}  



它非常简单,它从任务的任务选项卡隐藏窗口经理也停止从ALT + TABing人进入你的程序。

Its really simple, it hides the window from the 'tasks' tab on task manager and also stop people from ALT+TABing into your program.

这篇关于从任务管理器WPF C#中显示为“任务”停止窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆