Click here to Skip to main content
15,886,680 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 10-Aug-12 23:21pm
v2
Comments
Volynsky Alex 11-Aug-12 4:20am    
You also look it:
http://www.youtube.com/watch?v=B7F_HiQ1-o4

Try it:
VB
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

or for example you can set the registry key to this value:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr, i.e.
VB
systemRegistry.SetValue("DisableTaskMgr", 1)

or for example you can write :
VB
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
 
Share this answer
 
Comments
Sanju TV 11-Aug-12 4:36am    
Thanks for your help but i also want to disable winodws menu key and Ctrl + Alt + Delete

Any idea...
Abdul Quader Mamun 11-Aug-12 4:41am    
good answer!
Volynsky Alex 11-Aug-12 7:02am    
Thanks Abdul!
It all depends on the windfows version you are working with, in XP you could modify / create a new GINA.DLL which is the one that handles Ctrl+Alt+Del, or start modifying policies.

Ctrl+alt+Del is a subset of keys that has to be captured in a different way than a normal key set.

Search for samples, but don't expect to be able to do it from your program.

Search for this ctrl+alt+del blocking windows in google.

Good luck.
 
Share this answer
 
I got the solution from thi s site

http://www.inchwest.com/mapkeyboard.htm[^]

its a utility with the help of it we can map our keys


Thank you all
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900