Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 10-Aug-12 22:20pm
Edited 11-Aug-12 0:21am
v2
Comments
Volynsky Alex at 11-Aug-12 4:20am
   
You also look it:
http://www.youtube.com/watch?v=B7F_HiQ1-o4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try it:
    
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.
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
  Permalink  
Comments
Sanju TV at 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 at 11-Aug-12 4:41am
   
good answer!
Volynsky Alex at 11-Aug-12 7:02am
   
Thanks Abdul!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  

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

  Print Answers RSS
0 DamithSL 245
1 Sergey Alexandrovich Kryukov 217
2 OriginalGriff 200
3 Peter Leow 160
4 Afzaal Ahmad Zeeshan 85
0 OriginalGriff 7,380
1 DamithSL 5,359
2 Sergey Alexandrovich Kryukov 4,944
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 23 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100