本文介绍了禁用控制键和Windows键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我已经开发了一个信息亭应用程序.
如何禁用开始菜单,Windows任务
经理,通过VB.Net的Ctl + Alt + Del按钮,
如果有人知道,请告诉我...任何建议都会很大
感谢.
谢谢,
Sanju.
Dear Friends,
i have developed a kiosk application.
How to disable the start menu ,windows task
manager,Ctl+Alt+Del buttons through VB.Net?,
If any one knows please let me know...Any suggestions would be greatly
appreciated.
Thanks,
Sanju.
推荐答案
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
For Each selProcess As Process In Process.GetProcesses
If selProcess.ProcessName = "taskmgr" Then
selProcess.Kill()
Exit For
End If
Next
End Sub
End Class
或者例如,您可以将注册表项设置为以下值:
HKCU \软件\ Microsoft \ Windows \ CurrentVersion \ Policies \ System \ DisableTaskMgr,即
or for example you can set the registry key to this value:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr, i.e.
systemRegistry.SetValue("DisableTaskMgr", 1)
或者例如,您可以编写:
or for example you can write :
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim systemRegistry As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
systemRegistry.SetValue("DisableTaskMgr", 1)
systemRegistry.Close()
End Sub
End Class
这篇关于禁用控制键和Windows键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!