从任务栏c#win隐藏应用程序。形式 [英] hide application from taskbar c# win. forms
问题描述
我想隐藏任务栏进程中的应用程序。我尝试了 IsShowInTaskbar = false
,但它只是从应用程序选项卡隐藏它,但我想从进程选项卡中隐藏它。有人可以帮我解决这个问题。谢谢。
i want to hide my application from taskbar processes. I tried IsShowInTaskbar=false
but it only hides it from application tab but i want to hide it from process tab. can somebody help me on this topic.Thanks in advance.
推荐答案
如果你想阻止Win Form出现在TaskBar中,并且出现在Alt中-Tab switch-programs facility:
If you want to prevent a Win Form from both appearing in the TaskBar, and from appearing in the Alt-Tab switch-programs facility:
this.ShowInTaskbar = false;
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
您还可以使用'SizableToolWindow选项。
但是,我建议你考虑实现这种非标准Win Form行为的含义。用户被社交以期望应用程序的窗口以某种方式运行。
除了某些特殊情况,例如kiosk模式应用程序,以及(可能)公共租用计算机设备,我认为混淆标准窗口行为通常是一个坏主意。
You could also use the 'SizableToolWindow option.
But, I urge you to consider the implications of implementing such non-standard Win Form behavior. Users are socialized to expect applications' windows to behave a certain way.
With the exception of certain unique situations, such as kiosk-mode applications, and (perhaps) public rent-a-computer facilities, I think it is generally a bad idea to mess with standard windows behavior.
这篇关于从任务栏c#win隐藏应用程序。形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!