Link to home
Start Free TrialLog in
Avatar of amaimedia
amaimediaFlag for Bosnia and Herzegovina

asked on

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.
Avatar of SStory
SStory
Flag of United States of America image

Avatar of amaimedia

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial