使用C#隐藏任务栏 [英] Hide the taskbar using C#
问题描述
我正在运行Windows XP 64位。我想在运行应用程序时隐藏任务栏。
I am running Windows XP 64 bit. I want to hide the taskbar when I run my application.
我在网上搜索代码。所有这些都隐藏了任务栏。但是问题是,当我打开记事本并将其最大化时,它实际上并没有进入全屏状态。因为任务栏所在的空间仍然被空白空间阻塞。我希望它真的适合全屏模式。
I tried codes by searching the web. In all those, it hides the task bar. But the problem is, when i open a notepad and maximize it, it is not actually into full screen. Because the space where task bar was there is still blocked with empty space. I want it fit really into full screen mode.
推荐答案
我通过使应用程序无边界,最大化和设置来实现此目的它是最高的。这是CodeProject中的完美的示例。
I've done this by making the application borderless, maximized, and setting it to be Topmost. Here's a perfect example from CodeProject.
正如一位评论者所说,替换禁用资源管理器并运行您的应用程序可能是最好的安全方式。
As one of the commenters has said, replacing disabling Explorer and running your application might be the best way, security-wise.
这篇关于使用C#隐藏任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!