amaimedia
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.
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.
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.RegistryKe y = Microsoft.Win32.Registry.C urrentUser
Dim key As Microsoft.Win32.RegistryKe y =
HKCU.CreateSubKey("Softwar e\Microsof t\Windows\ CurrentVer sion\Polic ies\System ")
key.SetValue("DisableTaskM gr", IIf(enable, 0, 1), Microsoft.Win32.RegistryVa lueKind.DW ord)
End Sub
ALT+f4 in form closing event e.Cancel = True
CTRL+ALT+DELETE
Public Sub EnableTaskManager(ByVal enable As Boolean)
Dim HKCU As Microsoft.Win32.RegistryKe
Dim key As Microsoft.Win32.RegistryKe
HKCU.CreateSubKey("Softwar
key.SetValue("DisableTaskM
End Sub
ASKER
I create global hook
http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4831/
http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4831/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, check this out for free:
http://www.codeguru.com/forum/archive/index.php/t-222304.html