在VB.NET中隐藏开始菜单和开始按钮
我正在设置我的控制台全屏,但我还想使用Visual Studio 2010在VB.NET中隐藏任务栏和开始按钮在VB.NET中隐藏开始菜单和开始按钮,vb.net,vb.net-2010,Vb.net,Vb.net 2010,我正在设置我的控制台全屏,但我还想使用Visual Studio 2010在VB.NET中隐藏任务栏和开始按钮 谢谢隐藏任务栏的一种方法是结束浏览器进程 For Each p As Process In Process.GetProcesses If p.ProcessName = "explore" Then p.Kill() End If Next Process.Start("explorer") 完成后,必须重新启动资源管理器进程 For Each p
谢谢隐藏任务栏的一种方法是结束浏览器进程
For Each p As Process In Process.GetProcesses
If p.ProcessName = "explore" Then
p.Kill()
End If
Next
Process.Start("explorer")
完成后,必须重新启动资源管理器进程
For Each p As Process In Process.GetProcesses
If p.ProcessName = "explore" Then
p.Kill()
End If
Next
Process.Start("explorer")
我结束了使用Sam解决方案,但我使用了另一种方法,即使用Process.Kill并没有阻止explorer.exe自动重新启动 必须以这种方式使用taskkill:
System.Diagnostics.Process.Start("taskkill.exe", " /f /im explorer.exe")
然后,在关闭应用程序时,再次调用explorer.exe:
System.Diagnostics.Process.Start("C:\Windows\explorer.exe")
我必须使用完整路径,因为调用“explorer.exe”无法还原任务栏。这可能会有帮助: