Disable ALT

Hi

Hope someone can help

I need a way to disable ALT-Tab / ALT-Esc/CTRL-Esc in windows 2k/XP while my form
is loaded.
amaimediaAsked:
Who is Participating?
 
Computer101Connect With a Mentor Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0
 
SStoryCommented:
0
 
amaimediaAuthor Commented:
I found for disable
ALT+f4  in form closing event e.Cancel = True
CTRL+ALT+DELETE
Public Sub EnableTaskManager(ByVal enable As Boolean)
        Dim HKCU As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser
        Dim key As Microsoft.Win32.RegistryKey =
HKCU.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
        key.SetValue("DisableTaskMgr", IIf(enable, 0, 1), Microsoft.Win32.RegistryValueKind.DWord)
    End Sub

0
 
amaimediaAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.